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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Saloni_Gupta
Helper I
Helper I

Dynamic conditional formatting for Line Chart

Hi All,

I have a requirement where current fiscal year line should always be showing up with solid, thick and dark red line. I am aware that dynamic formatting for Line chart is not possible as of now but is there a workaround? I tried converting it to stacked bar graph and then added dax measure but it works with only 2 columns (x-axis and y-axis) and not with 3rd column in Legend. But I want to display the line chart using Display Month and Fiscal Year (as shown in the first screenshot) and always display the current fiscal year line with solid, thick and dark red line.

Saloni_Gupta_0-1748480039892.pngSaloni_Gupta_1-1748480093506.pngSaloni_Gupta_2-1748480155050.png

 

Saloni_Gupta_3-1748480428638.pngSaloni_Gupta_4-1748480488871.png

 

Would really appreciate any suggestions or workarounds!

Thanks so much!

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @Saloni_Gupta 

You could adapt the method used in this previous post.

In your case, you would need to set the Group By Columns property of Fiscal_Year to Fiscal_Year_Flag (or another appropriate column).

 

Then when using Fiscal_Year as a legend field, formatting selections in the formatting pane will be linked to Fiscal_Year_Flag, and formatting will be preseved based on Fiscal_Year_Flag.

 

Are you able to get something like that working?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

3 REPLIES 3
v-echaithra
Community Support
Community Support

Hi @Saloni_Gupta ,

We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,
Chaithra.

v-echaithra
Community Support
Community Support

Hi @Saloni_Gupta ,

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,
Chaithra.

OwenAuger
Super User
Super User

Hi @Saloni_Gupta 

You could adapt the method used in this previous post.

In your case, you would need to set the Group By Columns property of Fiscal_Year to Fiscal_Year_Flag (or another appropriate column).

 

Then when using Fiscal_Year as a legend field, formatting selections in the formatting pane will be linked to Fiscal_Year_Flag, and formatting will be preseved based on Fiscal_Year_Flag.

 

Are you able to get something like that working?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.