Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

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.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , I think isinscope can help

 

if(isincope(Table[Manager]), [Manager % Measure] , []Division % Measure])

 

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
HashamNiaz
Solution Sage
Solution Sage

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

amitchandak
Super User
Super User

@Anonymous , I think isinscope can help

 

if(isincope(Table[Manager]), [Manager % Measure] , []Division % Measure])

 

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

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

dkaushik
Resolver II
Resolver II

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.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.