cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

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 Frequent Visitor
Frequent Visitor

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

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.

Re: How to give color change on every 1 year using Line 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

Highlighted
Community Support Team
Community Support Team

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

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.

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

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
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors