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

Show/hide matrix items with conditional formating

I have a matrix that shows results from a checklist. The matrix is divided in 3 levels, nested in this order: Bussiness Area, Audit Area and Question.

I have a comments column that I would like to format in such a way that it only shows a comment when the matrix is unfolded. This is how it should be:

gasilva8_6-1638279948789.png

However, now it only allows me to set First value, Last value and Count.

gasilva8_0-1638278637498.png

If I set First value, it shows the first comment even if the matrix is folded, showing a random comment for the item Business Area, which actually doens't have any comment.

gasilva8_5-1638279750459.png

The same happens If I open the level second level (Audit Area).

gasilva8_8-1638280118024.png

 

What should I do to prevent it to show comments information when the matrix is not totally unfolded? 

 

 

 

1 ACCEPTED SOLUTION
ikor42
Regular Visitor

Hi,

instead of column "Comment" in the Value box use measure: 

New Comment = IF (
                                 ISFILTERED ( Checklist[Question] ),
                                 SELECTEDVALUE ( Checklist[Comment] )
                             )
 
Should be enough to fix the issue.

View solution in original post

5 REPLIES 5
ikor42
Regular Visitor

Hi,

instead of column "Comment" in the Value box use measure: 

New Comment = IF (
                                 ISFILTERED ( Checklist[Question] ),
                                 SELECTEDVALUE ( Checklist[Comment] )
                             )
 
Should be enough to fix the issue.
Anonymous
Not applicable

Thanks @ikor42!!

It worked. I just had to add a different column to ISFILTERED.

 

amitchandak
Super User
Super User

@Anonymous , based on what I got so far.

If need you to keep it completely unfolded using expand icon(Reverse Square Y), expand till levels are open.

Or keep it open till a level and save.

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

@amitchandak,

Actually this is what I would like to prevent to happen:

- Totally folded:

gasilva8_5-1638281959833.png

 

- Second level:

gasilva8_6-1638282012645.png

 

- Third level: Okay! This is how I think it should looks like. Business Area and Audit Area doesn't have any comment, so it should not show any comment when the matrix is folded.

gasilva8_7-1638282058274.png

 

 

 

 

 

@Anonymous 

You can keep all three columns in the ROWS section of the matrix visual. I think you have inserted the Comments in the Values section.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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.