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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Tanushree_Kapse
Impactful Individual
Impactful Individual

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 🙂

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 🙂

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.