The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
In my case, I want to show Max & Min in line chart & matrix table.
It works fine in matrix, but doesn't work with data label in line chart.
Max of value by month =
CALCULATE(MAXX(
SUMMARIZE(ALL(Sheet1),'Sheet1'[month]),'Sheet1'[sum_value])
,REMOVEFILTERS(Sheet1[Sort of month]))
Mix of value by month =
CALCULATE(MINX(
SUMMARIZE(ALL(Sheet1),'Sheet1'[month]),'Sheet1'[sum_value])
,REMOVEFILTERS(Sheet1[Sort of month]))
Color_format_MAX&MIN_value =
IF('Sheet1'[sum_value] = 'Sheet1'[Max of value by month] , "Red",
IF('Sheet1'[sum_value] = 'Sheet1'[Mix of value by month], "Green",
"black"))
please kindly help
Solved! Go to Solution.
Hi @shyang5 ,
I have created a simple sample, please refer to my pbix file.
Measure = var _max=MAXX(ALL('Table'),'Table'[VALUE])
var _min=MINX(ALL('Table'),'Table'[VALUE])
return
IF(_max=MAX('Table'[VALUE]),_max,IF(_min=MAX('Table'[VALUE]),_min,BLANK()))
Or you can vote here:Conditional formatting for lines in Line Chart
Line Chart Marker Color Conditional Formatting
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @shyang5 ,
I have created a simple sample, please refer to my pbix file.
Measure = var _max=MAXX(ALL('Table'),'Table'[VALUE])
var _min=MINX(ALL('Table'),'Table'[VALUE])
return
IF(_max=MAX('Table'[VALUE]),_max,IF(_min=MAX('Table'[VALUE]),_min,BLANK()))
Or you can vote here:Conditional formatting for lines in Line Chart
Line Chart Marker Color Conditional Formatting
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
it works now
thank for giving me the solution
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
78 | |
71 | |
52 | |
50 |
User | Count |
---|---|
123 | |
119 | |
76 | |
64 | |
60 |