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
rishtinz
Helper I
Helper I

Dynamic coloring of latest Year in line chart

I have data for different fiscal years and I am using line chart in Power BI.

I have Weeks on x-axis and fiscal year on legend. I would like to have a fixed color (say BLUE) for the most recent year. Currently this is defined manually in the properties and next fiscal year 2022/23 will stay blue and Power BI will pick a new color from the theme pallette for 2023/24. How can I have a fixed color to whatever the most recent fiscal year is. 

I do have a column that determines if the date is current fiscal year called IsCurrentFY.
There's a method to add multiple measures but it won't allow me to do that since I have a legend in place.

rishtinz_0-1666741997423.png

 

2 REPLIES 2
Arul
Super User
Super User

@rishtinz ,

Is IsCurrentFY a column? If so, what is the value in that column?

Thanks,





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


The value of IsCurrentFY is 1 or 0.

 

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.