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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
AmiraBedh
Super User
Super User

Display a column in a matrix based on a condition

I have a following dimension Geography linked to FactSales in an SSAS Tabular model, I want to display a column in a matrix based on conditions :

Example, the matrix display in Power BI :

 

Georaphic Position      Sales Amount

Americas                       500K

   Undefined                  500K

          T1                        150K

          T2                        350K

 The Sales Amount is a measure, in the matrix I want to skip any level where 'Undefined' is mentioned and show only its children :

Georaphic Position      Sales Amount

Americas                       500K

   T1                               150K

      T2                            350K

 

the dimension Geography is not conceived as a Parent - Child, should I start thinking about implementing it in that way ?


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @AmiraBedh ,

Please refer to my pbix file to see if it helps you.

Create a measure.

Measure =
IF (
    MAX ( 'Table'[Georaphic Position] ) = "Undefined",
    BLANK (),
    [Sales Amount_measure]
)

vpollymsft_0-1657504365897.png

If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.

 

 Best Regards
Community Support Team _ Polly

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @AmiraBedh ,

Please refer to my pbix file to see if it helps you.

Create a measure.

Measure =
IF (
    MAX ( 'Table'[Georaphic Position] ) = "Undefined",
    BLANK (),
    [Sales Amount_measure]
)

vpollymsft_0-1657504365897.png

If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.

 

 Best Regards
Community Support Team _ Polly

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors