Forum Discussion

gdoss's avatar
gdoss
Frequent Visitor
7 years ago
Solved

Show Different Values According to the Hierarchy

Hi everyone!   A friend told me that was possible but he didn't say how, that's why I'm here. I'm using a stacked bar chart and that's how it was plotted.   Axis: a 2 levels hierarchy Value: Tar...
  • gdoss's avatar
    gdoss
    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]));""))