Friday, February 24, 2012

Drillthrough row count is less than [Measures].[Sales Count] from cube

The reason that this is happening is somewhat attributed to the fact that I have 2 different breakouts (2 attributes in the same Customer dimension) of customer territories and security is only set at one of the territory types.

(Security was set at both, but I was having the fore mentioned issue, so I trimmed the restriction down to one territory for only one territory type - hoping that any customers under that one territory type would also show up under their corresponding territory type 2)

Thinking about the mdx/drillthrough results in more detail, I'm leaning toward the mdx results being wrong and the drillthrough being right.

Is there something I can do to fix this or is it a bug?

I wish I could give more detail, but it's tough.Adventure Works didn't seem to have a similar setup because customer.geography isn't related to sales territory.group.

If I run the following sql query on the source data, 3 of the type2 territories are returned:

select Territory2Name, count(*)

from dimCustomer

where Territory1Name = 'East'

group by Territory2Name

One of the Territory2Names is 'Section 2'.Now in here, there's only a count of 1 customer, yet when I look at the cube for Section 2 and [Sales Count], there's easily more than 1 customer composing the total and if I look at a sales dollars, it's the same thing.When I do a drillthrough, then it's correct - results are only for that one customer.

Any thoughts on this perplexing problem?

Does your security role have the Visual Totals option ticked?

If not it will be showing the total for the "All" member of the Territory1 attribute unless you are also explicitly filtering by a Territory1 member.

|||Both of the dimension data security attributes had visual totals checked.

What I ended up doing to solve this problem is only giving access to an area in territory type1 and did not specify any security on territory type 2. This was exceptable for my case - users just needed access to a sampling of the items in both territory types, but in other cases, a person might have to do more digging to get access to a specific area from both geographical types..

No comments:

Post a Comment