Drillthrough Not Applying Filters Used In CALCULATE Expression?

mcornell13

New Member
Joined
Nov 1, 2013
Messages
1
<!--[if !supportLists]-->Hi guys -<o:p></o:p>
In testing a Tabular(2012 SP1) model I've been working on, I'm noticing that when invoking thedrillthrough action in Excel (2010), it does not appear to be functioningas I expect when the Calculated Measure includes a CALCULATE expression with additionalfilter context applied. The value being displayed in the Pivot Table iscorrect, but when I drill through a cell, ALL values are being returned forthe original expression within the CALCULATE expression for the filter contextof the Pivot Table only. It's like any additional filter context used inthe Calculated Measure AFTER the CALCULATE expression is being ignored by the drill through.<o:p></o:p>
Here's a simpleexample I created in PowerPivot to illustrate my problem:<o:p></o:p>
I have a simple Orderstable:<o:p></o:p>
Salesman<o:p></o:p>
OrderNumber<o:p></o:p>
Year<o:p></o:p>
Mike<o:p></o:p>

3<o:p></o:p>

2012<o:p></o:p>
Mike<o:p></o:p>

2<o:p></o:p>

2012<o:p></o:p>
Mike<o:p></o:p>

32<o:p></o:p>

2013<o:p></o:p>
Bob<o:p></o:p>

1<o:p></o:p>

2012<o:p></o:p>
Bob<o:p></o:p>

6<o:p></o:p>

2013<o:p></o:p>
Tom<o:p></o:p>

19<o:p></o:p>

2012<o:p></o:p>

<tbody>
</tbody>
I've created 2 simpleMeasures:<o:p></o:p>
CountOrders:=COUNTROWS(Orders)<o:p></o:p>
CountMikesOrders:=CALCULATE(Orders[CountOrders],Orders[Salesman]="Mike")<o:p></o:p>
Next, I created thesimple pivot table below:<o:p></o:p>
Row Labels<o:p></o:p>
CountOrders<o:p></o:p>
CountMikesOrders<o:p></o:p>
2012<o:p></o:p>

4<o:p></o:p>

2<o:p></o:p>
2013<o:p></o:p>

2<o:p></o:p>

1<o:p></o:p>
Grand Total<o:p></o:p>

6<o:p></o:p>

3<o:p></o:p>

<tbody>
</tbody>
As you see, the valuescalculate as expected.<o:p></o:p>
Next, I'll drillthrough CountOrders (does not include additional filter context inmeasure) for the 2012 row (expect 4 rows):<o:p></o:p>
-----------------------<o:p></o:p>
Data returned for CountOrders, 2012 (First 1000 rows).<o:p></o:p>
[$Orders].[Salesman]<o:p></o:p>
[$Orders].[OrderNumber]<o:p></o:p>
[$Orders].[Year]<o:p></o:p>
Mike<o:p></o:p>
3<o:p></o:p>
2012<o:p></o:p>
Mike<o:p></o:p>
2<o:p></o:p>
2012<o:p></o:p>
Bob<o:p></o:p>
1<o:p></o:p>
2012<o:p></o:p>
Tom<o:p></o:p>
19<o:p></o:p>
2012<o:p></o:p>

<tbody>
</tbody>
----------------------<o:p></o:p>
The returned valuesare as expected.<o:p></o:p>
Next, I'll drillthrough CountMikeOrders (does include additional filter context in measure) forthe same 2012 row (expect 2 rows):<o:p></o:p>
------------------<o:p></o:p>
Data returned for CountMikesOrders, 2012 (First 1000 rows).<o:p></o:p>
[$Orders].[Salesman]<o:p></o:p>
[$Orders].[OrderNumber]<o:p></o:p>
[$Orders].[Year]<o:p></o:p>
Mike<o:p></o:p>
3<o:p></o:p>
2012<o:p></o:p>
Mike<o:p></o:p>
2<o:p></o:p>
2012<o:p></o:p>
Bob<o:p></o:p>
1<o:p></o:p>
2012<o:p></o:p>
Tom<o:p></o:p>
19<o:p></o:p>
2012<o:p></o:p>

<tbody>
</tbody>
----------------------<o:p></o:p>
As you see, ALL rowsfor 2012 were returned, not just the rows for "Mike".<o:p></o:p>
To me, this seemsincorrect. I'm also sure it will seem incorrect to my users, as they willexpect only the rows to be returned for the value they drilled through.<o:p></o:p>
Am I missing some very obvious rule about filter context?:oops: Is this functionalityexpected? Is there a way (either setting or DAX code) to get the appropriatedrillthrough records returned when applying additional filter context within a measure?<o:p></o:p>
I appreciate any andall responses.<o:p></o:p>
Thanks - Mike<o:p></o:p>
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,214,651
Messages
6,120,739
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top