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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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