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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Conditional Formating based on existing table value

Can we just compare every cell in a column of a matrix visual with specific cell of other visual. Thing that we can easily do with excel, but in PBI it seem we can only specify a value, or that value is aggregated of a column? 

 

mynameistom_0-1652351795933.png

 

Is that a solution that So we can only create other column to compare those two value (if smaller mark 1) then set rule for color?

 

Edited:

 

so I have map two table (group by team and group by staff) result in column team_actual_kpi, then compare use dax, now I want to highlight column [Name] with same condition from Actual KPI (that mean if Actual KPI is red then the name is red too) Plz give solution with dax. And do you have any solution without dax?

 

assk pbi.png

6 REPLIES 6
Shishir22
Solution Sage
Solution Sage

Hello @Anonymous ,

 

Matrix visual currently support Conditional Formatting only for Values not for Rows. 

 
 
 
Please mark it as solution if it answer your query. Kudos are also appreciated.
 
 
Cheers,
Shishir
amitchandak
Super User
Super User

@Anonymous , Can you both as number in Condition. One of them is percent. Check after 0 in the box

 

Also consider Color measure

 

example

Color sales = if(AVERAGE(Sales[Sales Amount])<170,"green","red")

 

Color Year = if(FIRSTNONBLANK('Table'[Year],2014) <=2016,"lightgreen",if(FIRSTNONBLANK('Table'[Year],2014)>2018,"red","yellow"))

 

Learn Power BI Advance - PowerBI Abstract Thesis: How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/1682539

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

Please read my updated question.

Shishir22
Solution Sage
Solution Sage

Hello @Anonymous ,


Can you please share data(after hiding sensitive information) and come up with expected result so that we can help you out properly.

 

Cheers,
Shishir
Anonymous
Not applicable

Hi, so I have map two table (group by team and group by staff) result in column team_actual_kpi, then compare use dax, now I want to highlight column Name with same condition from Actual KPI (that mean if Actual KPI is red then the name is red too) Plz give solution with dax. And do you have any solution without dax?

conditional formatconditional format

Anonymous
Not applicable

@Shishir22  more advance, I want to set the red color base on scales, the more it bellow the number the more red. Say the solution if you could.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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