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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Condditional formating based on another table

Hi 

 

I would like to make visible in the table # 1  with sale per emplyee when they were eligible for bonus. 

table #1.PNG

 

 

 

The bonus is based on other criteria than sale and it is showing displayed in the table #2. so the table #2 is the source of the conditions that should aply to the table #1

 

table #2.PNG

 

 

 

 

and this is how the end result should look like it can be also different font color

result.PNG

 

thank you 

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous,

 

Current power bi only support condditional formating by current value, it not supoort highlight cells by other table.

I try to look for custom visuals which has the similar feature but failed, so I'd like to suggest you share it to ideas forum.

 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

hi @Anonymous

 

Thank you for your qick response. I was affraid that woudl be the case.

Isnt there a way how to do this with help of DAX.

Lets say i have the total sale data in a different table where i would need to calculate it first

 

- something like

 

john sale = calculate (sum(table all sale,table all sale[2015]),filter(tabletable all sale[employee]="john") 

 

and then

 

= if(table#2[2015]="Bonus", format("john sale", "red", text), "john sale"

 

i mean this is very simplistic but i am still very new to dax .. but you might get the idea and maybe you can help

 

thank you 

Anonymous
Not applicable

Hi @Anonymous,

 

>>= if(table#2[2015]="Bonus", format("john sale", "red", text), "john sale"

Dax not a programming language, it not support to access/modify visual property.

 

Regards,

XIaoxin Sheng

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.