Forum Discussion
Comparing top performers with selection
- tex6287 years agoCommunity Champion
I would start by creating measures calculating the KPI values that you want to compare against. These measures should ignore all external filters and always produce the current value.
As an example, if you want to compare against the average of buildings classified as "A",Measure = Calculate( ( [Consumtion] / [Duration] ) / [BuildingCount] , All( 'Buildings') , [Classifcation] = "A" )
This measure should always produce the average of buildings classified "A" which means that if you put it in a table together with the normal calculation you should be able to use a slicer to filter on a specific building to compare.
/ J- benP7 years agoFrequent Visitor
Thanks so much for you reply,
In the measure it won't allow me to specifiy [classification] = 'A' as this is not a measure,
Is there a way around this?
Thanks,
Ben
- tex6287 years agoCommunity Champion
I assume that classification is a column, so in that case it would be 'Table1'[Classification] = "A" instead in the filter statement.
- Anonymous7 years agoNot applicable
Hi benP
You can replace condition to use your selection fields to instead:
Measure = CALCULATE ( ( [Consumtion] / [Duration] ) / [BuildingCount], ALL ( 'Buildings' ), [Classifcation] IN VALUES ( Table[Column] ) )Regards,
Xiaoxin Sheng