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'm looking to create a table with our employees and their statistics and I want each box to be colour coded (red/green) based on how much percent higher or lower it is compared to the last week. How would I go about doing this?
Solved! Go to Solution.
@morgancampbell Use conditional formatting:
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting
@morgancampbell , Create a color measure and use that in conditional formatting with "Field Value" option
Color Measure =
var _avgDisc = CALCULATE([Percent %],ALL(Retail))
return switch(TRUE(),
[Percent %] <_avgDisc , "Red",
[Percent %] >_avgDisc , "Green", "Black")
In case you need steps
https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
@morgancampbell Use conditional formatting:
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting
That's brilliant, thank you.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 43 | |
| 40 | |
| 38 | |
| 22 |
| User | Count |
|---|---|
| 178 | |
| 125 | |
| 116 | |
| 77 | |
| 54 |