?
Solved

SSAS Cube Filter Not Working

Posted on 2009-04-22
3
Medium Priority
?
908 Views
Last Modified: 2016-02-12
Hello Experts,
I am a noob to SSAS.  I have inherited a cube that was created by one of our other developers.  Unfortunately, he was let go in a recent round of layoffs.  What is happening is that one of our users wants to filter for a particular order number and then filter on a column called 'Usage' which contains only 3 values - Money, Bonus and Filler.  Bonus and Filler are always zero dollar spots (we sell commercial air time on cable TV channels), so the Average Unit Rate and Net Revenue should be zero.

I have attached a couple of screen shots to show the results from the cube and also a query that I put together that uses the same views that are used in the data source view and joined in the same way as is defined in the cube.  In the query you can see that there are many Bonus spots for line 010 and also that line 098 has a Usage type of Money.  However, the cube displays only one spot from line 010 and for some reason also displays line 098.

Based on the fact that the query seems to show the correct data, I think the problem must have something to do with how the cube is setup.  But as I said, I am a noob to SSAS so I have no idea where to start looking.

Any help is appreciated!
Thanks.
Cube.JPG
Query.JPG
0
Comment
Question by:adlink_la
2 Comments
 
LVL 6

Accepted Solution

by:
agandau earned 2000 total points
ID: 24208102
If the user is only interested in usage of "Money" you can modify the DSV so that the only "money" records come in.

I would think having all the records would be better for analysis, in which case you need a usage dimension.  

Add a named query to the DSV called perhaps "Usage".  It can just be "SELECT DISTINCT Usage FROM BoardReports_Performance", or if that would be an excessively long running query then somethine like

SELECT "Money" as Usage, 1 as UsageSortKey
UNION
SELECT "Bonus" as Usage, 2 as UsageSortKey
UNION
SELECT "Filler" as Usage, 3 as UsageSortKey

Draw a relationship between this table and the fact table on the Usage column so that the arrow is pointing to the Usage Colulmn in your new Usage table.

In BIDS, create a new dimension based on this table (if this is sounding confusing, there are walkthroughs on MSDN).  Bring both columns in as dimension attributes making sure that "Usage" is the key.  Set the UsageSortKey to visible = false.  For the attribute "Usage", the "Usage" column will be both the Member Name and Member Key, and you can set the sorting for the "Usage" attribute to sort by Attribute Key and then point use the UsageSortKey.

Add this dimension to the cube, and double check that the "Dimension Usage" (too many usages!) shows the relationship between your fact Measure group (fact table) and the new dimension is set to a regular relationship on the column "Usage".

Reprocess your cube.  Then in Excel, you can use the usage tab either in your rows or columns or as a filter.
0
 
LVL 5

Author Closing Comment

by:adlink_la
ID: 31573375
Thanks.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question