29 Şubat 2012 Çarşamba 22:22I need a way to get the % of a number of the total filtered values. The ALL function looks at the entire underlying table, not the filtered data set. In the new version of PowerPivot in Beta there is the ALLSELECTED function that returns the column total of the filtered data set. How can I do this in V1 of PowerPivot?
01 Mart 2012 Perşembe 02:44
In PowerPivot v1, you can use the technique described on this blog entry:
01 Mart 2012 Perşembe 14:40
Unfortuanely that method won't work, or I can't make it work. Here is why:
The pivot table that would be using this measure does not have a column. It is made up of a row and the measure result. The pivot is already tied to a slicer, but I can't tie the slicers selections directly to the underlying table. Here is the current query behind the slicer measure:
Here is a snapshot of the data elements. Using the pivot in Excel is not an issue because I can set the Value Field Setting to be % of Column, but I want to use the underlying PowerPivot data in PerformancePoint so I need to have a measure that will give me the % values.
02 Mart 2012 Cuma 01:57
It is not completely clear to me what your entire dataset or data model even looks like. However, from what I can see, the technique mentioned can indeed help. When you do a % of Total, you normally think of the ALL function in the denominator. However, ALL can clear the context on the column or table, and if you have a slicer selection on that column it will ignore it. By creating a copy of the column (as a new calculated column), you can keep the context on that second column and generate a % of total 'selected'. This what is normally referred to as 'Visual Totals'.
Can you send me the file? In that way I can more directly related to your data model. email@example.com