Forum Discussion
Show Different Values According to the Hierarchy
- 7 years ago
Hi mussaenda!
I've tried this way but it didn't work. Drilling up, the visual just summed all th results above the hierarchy. But I used ISFILTERED and it worked!
This was the measure:
% Meta = IF(ISFILTERED('Target - State'[State]);CALCULATE(SUM('Target - State'[Done])/SUM('Target - State'[Target]);ALLEXCEPT('Target - State';'Target - State'[State]));IF(ISFILTERED('Target - State'[Country]);CALCULATE(SUM('Target - State'[Done])/AVERAGE('Target - State'[Target Country]);ALLEXCEPT('Target - State';'Target - State'[Country]));""))
mussaenda great!
About states ok! That's it. But what happens when I drill up? The sum will be just the sum of the states inside that country hierarchy, or are they a percentage of the Country - Target (that would be the right)?
thanks!
- mussaenda7 years ago
Community Champion
hi gdoss ,
Have you tried?
The sum will show according to what you put inside the visual.
Try it and you can also answer the question by yourself and see if it is showing right values.
Do not forget to close the thread if your question has been solved.
- gdoss7 years agoFrequent Visitor
Hi mussaenda!
I've tried this way but it didn't work. Drilling up, the visual just summed all th results above the hierarchy. But I used ISFILTERED and it worked!
This was the measure:
% Meta = IF(ISFILTERED('Target - State'[State]);CALCULATE(SUM('Target - State'[Done])/SUM('Target - State'[Target]);ALLEXCEPT('Target - State';'Target - State'[State]));IF(ISFILTERED('Target - State'[Country]);CALCULATE(SUM('Target - State'[Done])/AVERAGE('Target - State'[Target Country]);ALLEXCEPT('Target - State';'Target - State'[Country]));""))