MSSQLTips.com - your daily source for SQL Server tips

Google
 
Web mssqltips.com

ESSENTIALS: Home | Tips | Search | Categories | Top 10 | Products | Authors | Blogs | Forums | Webcasts | Advertise | About
How To Build a Cube From an Existing Data Source Using SQL Server Analysis Services - MSSQLTips

MSSQLTips

MSSQLTips.com - your daily source for SQL Server tips
Welcome to MSSQLTips Sign in | Join | Help
in Search

How To Build a Cube From an Existing Data Source Using SQL Server Analysis Services

Last post 07-18-2008 7:09 AM by bluedogs. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 07-03-2008 12:30 AM

    How To Build a Cube From an Existing Data Source Using SQL Server Analysis Services

    This post is related to this tip: How To Build a Cube From an Existing Data Source Using SQL Server Analysis Services

    http://www.mssqltips.com/tip.asp?tip=1532

  • 07-17-2008 6:55 AM In reply to

    Re: How To Build a Cube From an Existing Data Source Using SQL Server Analysis Services

    I am having some annoying issues with Excel 2007...the main one is that I am able to do a "between" filter on an attribute, but when I move that attribute to the "Report Filter" area, I am only able to filter by checkbox, which doesnt work really well when you have 10,000 values :)

    Has anyone else seen this issue and found a resolution for it? Thanks in advance

  • 07-17-2008 6:24 PM In reply to

    Re: How To Build a Cube From an Existing Data Source Using SQL Server Analysis Services

    I have a suggestion that could help out.  You can group members in a dimension so that instead of having 10,000 discrete values you have a much smaller number of values which are actually ranges of values.  

    There are 2 attribute properties that you use to set this up: DiscretizationBucketCount (i.e. how many) and DiscretizationMethod (Automatic, EqualAreas, Clusters).

    You can find an example in AdventureWorks  - take a look at the YearlyIncome attribute in the Customer dimension. It has values like 10000 - 30000, 40000 - 70000, 80000 - 90000, etc.

  • 07-18-2008 6:32 AM In reply to

    Re: How To Build a Cube From an Existing Data Source Using SQL Server Analysis Services

    Thanks for the advice Ray...I appreciate it.

     I thought about using the discretization buckets, but I was not able to find a way to specify custom buckets. My understanding is that SSAS decides how to divide the data depending on the bucket count you choose...I need to be able to specify 0-20, 20-350, 350-10000, for example.

     Do you know any way to do this? Do I need to get out my MDX book? :)

  • 07-18-2008 6:58 AM In reply to

    Re: How To Build a Cube From an Existing Data Source Using SQL Server Analysis Services

     I'm not sure how to do it in SSAS but you could:

    - Do it in the Data Source View using a named query; e.g. add in a CASE statement to map the ranges to text columns like '0 - 20'

    - Create a view in the Data Source and use CASE

    - Do it as part of your ETL process

     

     

  • 07-18-2008 7:09 AM In reply to

    Re: How To Build a Cube From an Existing Data Source Using SQL Server Analysis Services

    Great ideas, Ray. Thanks again!

Page 1 of 1 (6 items)