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

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

Reply
Anonymous
Not applicable

Displaying values and conditional formatting for main item in matrix when rows are collapsed

Hello,

 

I have a matrix that looks like the following:

 

When I collapse the rows it looks like this:

image.png

 

Currently, Power BI displays the % complete columns as sums of the values underneath, but I want it to display what's actually in that column for 'Test Item 2' in the Excel sheet I'm pulling data from.

Also, is there a way to setup the conditional formatting so the icon is displayed for the main item when it's collapsed? I want it to also display the icon by conditional formatting based on the value for 'Test Item 2' (which isn't 1.43 btw, that's a sum). And is it possible to show the data bar for the % complete on the main row when it's collapsed?

 

Any help is appreciated. Thanks!

 

5 REPLIES 5
Greg_Deckler
Community Champion
Community Champion

Maybe, a measure totals problem? Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi @Greg_Deckler

 

I don't think I necessarily need a calculated measure to deal with the 'Total' row values (or maybe I'm misinterpreting your solution). 

Here's what the test Excel sheet looks like:

image.png

 

When collapsed, I wanted the 'Test Item 2' to display what's already in the Excel sheet, so 20% under the '% Complete (excel)' column, and display a red icon under the 'Status' column (may need conditional formatting in PBI). Do you think this is possible?

 

@Anonymous , as @Anonymous has confirmed, you actually do need a measure. 🙂



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

HI @Anonymous,

Currently, you can't directly modify original table fields by condition formations feature. (it is used to formating with conditions and it not able to replace record values and change its summary mode)

You can refer to Greg_Deckler's 'measure total' blog to use measure formula with if statement to check the row contents level.
Then you can switch between different expression based on row contents level and return correspond records to replace original value fields to use on matrix.

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

image.png

 

Once again my picture doesn't display in the actual post. Here's what the matrix looks like when expanded. 

Thanks. 

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.