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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
community_pinki
Helper II
Helper II

Conditional formatting of Matrix rows not a values

Hi Team,

I am able to achive conditional formatting for values in matrix and now stuck in implementing same for rows in matrix.

 

Any suggestion would be appriciate.

Thanks

 

5 REPLIES 5
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.

Please try to create a rank measure and make this measure be used as a base field for the conditional formatting.

Please check the below picture and the attached pbix file.

 

 

Jihwan_Kim_1-1723194646748.png

 

 

Jihwan_Kim_0-1723194628011.png

 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

how can we apply colors for category as you have pulled category on rows of a matrix.

If I have category slicer and I have selected category "a" from slicer then entire row of matrix visual should be highlted with then specific color. Is this possible? 

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1723202339010.pngJihwan_Kim_1-1723202586569.png

slicer select conditional format background: =
VAR _SelectCategory =
    VALUES ( 'category slicer table'[category] )
VAR _condition =
    COUNTROWS ( FILTER ( category, category[category] IN _SelectCategory ) ) > 0
RETURN
    IF ( ISFILTERED ( 'category slicer table'[category] ) && _condition, "yellow" )

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

will category be colored as yellow?

Anonymous
Not applicable

Hi @community_pinki ,hello Jihwan_Kim ,thank you for your prompt reply!
The short answer is “No” because the category column under “Rows” do not have conditional formatting settings:

vyajiewanmsft_0-1723710353173.png

Best regards,

Joyce

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

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.