The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
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
User | Count |
---|---|
17 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
9 | |
8 |