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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors