Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hello,
I'm trying to highlight the max and min value from this chart:
To this:
I tryed using formating colors based on DAX measures like this:
Weekday = FORMAT([Date],"ddd")Gold Meals Served Average = [Gold Meals Served] / DISTINCTCOUNT('Date'[Date])!Max_Min Color =
VAR GetAllDays = ALLSELECTED('Date'[Weekday])
VAR GetMaxValue= MAXX(GetAllDays, CALCULATE([Gold Meals Served Average]))
VAR GetMinValue= MINX(GetAllDays, CALCULATE([Gold Meals Served Average]))
RETURN
IF(
[Gold Meals Served Average] = GetMaxValue,"#000e2f",
IF([Gold Meals Served Average] = GetMinValue, "#ffda30","#b3b3b3")
)Hi @carlosgeovany ,
Your approach should work, but you need to check several things:
VAR GetMaxValue= MAXX(GetAllDays, [Gold Meals Served Average])
If this post helps, then please considerAccept it as the solution to help the other members find it more quickly.
Appreciate your Kudos ![]()
Stand with Ukraine!
Hi, I made some progres but still no the desired output.
Problem is when I sort the column Weekday by the column WeekdayNum so I can see the days in order
As you can see above, now the colors are as spected, but when I try to sort it, the colors change to the same
Hi @carlosgeovany,
Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |