Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.