Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Yonah
Helper II
Helper II

Conditional formatting for multiple Y-axes in bar chart/ area chart

Hi,
I hope that there might be a solution after all.
I have an area diagram with two lines, and I want to mark the highest and lowest points of each line.
Is there a solution for this?

For one line I proceeded as follows, first I wrote the following measurer:

Max/MIN Abs.gross turnover Afterbuy Max =.
VAR Gross Sales = [Abs. Gross Sales Afterbuy Max]
VAR OfficeGross = [Abs. Gross Sales OfficeChairs]
VAR MaxABS =
MAXX ( ALL ( stock ), [Abs. gross sales Afterbuy Max] )
VAR MINABS =
MINX ( ALL ( stock ), [Abs. gross sales Afterbuy Max] )
VAR RESULT =
SWITCH (
TRUE ( ),
Gross sales = MaxABS, "Green",
Gross Sales = MINABS, "Red",
"Blue"
)
RETURN
RESULT

 

In the second step I converted the area chart into a line chart. And then applied it to the Columns for Meassuer. This was also possible without any problems.
However, as soon as there is a second Y-axis in the bar chart, it is not possible to set a conditional formatting for both.
Is there a way to achieve this?

Because as soon as I change the chart from the bar chart to the area chart, the formatting remains.
And locks like this, but of coure the red dote fore the dark blue line is wrong.

 

 

GRAFIK.PNG

Thanks

1 REPLY 1
v-yanjiang-msft
Community Support
Community Support

Hi @Yonah ,

Based on my test, in the latest version, color of marks in the area chart doesn't support conditional formatting. May I know how you did it?

vkalyjmsft_1-1664443610024.png

Best Regards,
Community Support Team _ kalyj

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.