Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 82 | |
| 48 | |
| 36 | |
| 31 | |
| 29 |