Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Conditional Matrix Arrangement

Hello,

 

I need to create a matrix so that it recognizes and reflects the division reults on the division row and the manager results in the manager rows. Measures are different (separated) calculated measures (for division and manager) since they have their own considerations.

 

I have this (notice how I'm getting averages for the division rows in column 3, this is wrong since division have their own results):

 Division % MeasureManager % Measure
North42%45%
John42%40%
Paul42%50%
East13%47%
Mike13%80%
Lois13%29%
Pete13%33%
West33%60%
Karen33%60%
South8%27%
Nick8%13%
Chris8%31%
Frank8%50%
Mel8%14%

 

And I want this as a result:

RESULTS MATRIX
 % Below Target
North42%
John40%
Paul50%
East13%
Mike80%
Lois29%
Pete33%
West33%
Karen60%
South8%
Nick13%
Chris31%
Frank50%
Mel14%

 

Thank you for your support.

4 Replies

  • Hi,

     

    For this you %age measure should calculate based on numerator and denominator. for eg:

    %age = divide(sum(numerator), sum(denominator)) 

     

    Thanks,

    Dheeraj

     

    If this post helps, then please consider Accept it as the solution and give thumbs up to help the other members find it more quickly.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you, adapted the example to my data and works awesome, I really appreciate it.

  • Hi !

    You can use below DAX to get your desired output;

     

    % Below Target = IF( ISINSCOPE(YourTable[Division]), [Division % Measure], [Manager% Measure])

     

    You can use ISINSCOPE() DAX function to filter the context.

     

    Regards,

    Hasham