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
rajendraongole1
Post Prodigy
Post Prodigy

How to give color change on every 1 year using Line chart

Hi

 

I have created one visual with 4 year data using Line chart. i want to represent a color functionality to represent each year with different color.

 

as of now i am able to get one color, checked the conditional formatting in data color level but it is not available. 

 

Please suggest, if there is any possibility chart is available or any dax required to get the color change on every 52 weeks?

 

Regards,

Rajendra

4 REPLIES 4
johnerlandsson
Regular Visitor

If you always show data for the last four years, then perhaps you could split it into four different queries and plot them as individual sets with different colours in your chart.

Hi,

 

I am showing the last 4 years data with trend , dont want to split the year wise. i tried with option for data color format condition which is not available. is there any way to showcase the data color for each year with different based on year x axis.? 

 

want to represent the line chart for every year with different colour. 

 

trend.png

Hi @rajendraongole1 ,

 

We can create a calculated column with year value as legand field to seet color for every year, but it will split the line chart.

 

2.PNG3.PNG

 

Sorry for that, I also not found other effective solution to achieve your requirement, perhaps you can submit the requirement to ideas and add your comments there to make this feature coming sooner : https://ideas.powerbi.com/forums/265200-power-bi-ideas  . Or you could create your own custom visual if is an experienced web developer. https://powerbi.microsoft.com/en-us/documentation/powerbi-custom-visuals/

 


BTW, pbix as attached.

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi

 

Thanks for the support., 

 

I have raised this requirement as idea forum.

 

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/38856016-conditional-formatting-f...

 

 

 

Please vote it if it is valid. thanks for the support.

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.