cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tanushree_Kapse
Solution Supplier
Solution Supplier

Different colors for single line in line chart

Hello,

How can I show different colors for different months in a single Line chart?

For ex:

Tanushree_Kapse_0-1625747378081.jpeg

 

Thanks

 

1 ACCEPTED SOLUTION
Stachu
Community Champion
Community Champion

The only one I can think if is to make it two measures, which return BLANK for not relevant part of the period, e.g.:

first = IF(MAX('Table'[Month Number])<= 6, [Sales], BLANK())
second = IF(MAX('Table'[Month Number])>= 6, [Sales], BLANK())

and you color them accordingly



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Proud to be a Super User!

View solution in original post

1 REPLY 1
Stachu
Community Champion
Community Champion

The only one I can think if is to make it two measures, which return BLANK for not relevant part of the period, e.g.:

first = IF(MAX('Table'[Month Number])<= 6, [Sales], BLANK())
second = IF(MAX('Table'[Month Number])>= 6, [Sales], BLANK())

and you color them accordingly



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.