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

line chart - conditional color variation

Hi,

I have to draw a single line chart which has different colors for values above an upper limit, a second color for values between the lower and upper limits and third color for values below lower limit.

 

Kind Regards,

Ashish

5 REPLIES 5
alaeddin14
Helper I
Helper I

Hi .. 

 

This is definitely not the best solution, but give a try. Change it to column chart and add a conditional column that have the values (Above limit, below limit, ...) and use it as legend as the picture below. Below 1 is black and above 1 is green. 

 

index.png

 

Cheers,

Alaeddin 

Hello, I like this idea, but how did you add the conditions?

hi there .. 

 

Just add a new column to your dataset with a simple if statment. Let's say your threshold is 1, then it should be something like: 

New column = if(column > 1 , "High" , "Low")

Then put this new column in the legend so the the bars will be colored according to the value if it's higher or lower than the threshold. 

 

Cheers,

Alaeddin 

Hello, I like this idea, but how did you add the conditions?

v-huizhn-msft
Employee
Employee

Hi @ashish_soni,

There are no such visual for your requriement. You can submit a requirement here. Thanks for understanding.

Best Regards,
Angelia


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.