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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have two measures - Net Sale and Target.
Both measures are in different tables.
If the Net Sale is below Target, I want to change the font color of Net sale.
Please help
Solved! Go to Solution.
Hi,
Create a new measure for que Color comparing the nets and targets, example:
ColorKPI = SWITCH(TRUE();SUM('Table'[Net])-SUM('Table'[Target])<0;"#FF0000";"#008000")
Then,
Use this measure in the conditional formatting, using the option Format By Field Value
Hi,
Create a new measure for que Color comparing the nets and targets, example:
ColorKPI = SWITCH(TRUE();SUM('Table'[Net])-SUM('Table'[Target])<0;"#FF0000";"#008000")
Then,
Use this measure in the conditional formatting, using the option Format By Field Value
Bro, can you please explain in detail, both measures are in different tables.
My example used two columns in the same table, but you can do with measures in different table (if they have relations) was you shown above.
If my post helped you, I appreciate your Kudos.
Thanks
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 46 | |
| 40 | |
| 38 | |
| 22 |
| User | Count |
|---|---|
| 176 | |
| 131 | |
| 118 | |
| 82 | |
| 54 |