cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Line Chart: Conditional Formatting

Hi All,

 

Im quite new to Power BI. Is there a way to use condtional formatting on a line chart... 

 

I have a line chart with 3 measures, 1 lower limit, 1 upper limit and 1 with the actual measure. 

 

The line has to color red when it exceeds either the lower or upper limits.

 

Thanks for your help fam.

 

Regards,

 

POWERNOOB

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resident Rockstar
Resident Rockstar

Re: Line Chart: Conditional Formatting

Hi @PowerNoob,

 

Currently, this feature is not supported in Power BI Desktop, you could vote this idea which has been submitted in Power BI ideas forum.

 

For the workaround, I have made a test that you could create two measures to get the result below.

 

sales1 = IF(SUM(Test[Sales])>40,BLANK(),SUM(Test[Sales]))
sales2 = IF(SUM(Test[Sales])>40,SUM(Test[Sales]),BLANK())

 

Capture.PNG

 

The line chart shows red which sales >40 and black which sales<=40.

 

Best Regards,

Cherry

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

View solution in original post

8 REPLIES 8
Highlighted
Resident Rockstar
Resident Rockstar

Re: Line Chart: Conditional Formatting

Hi @PowerNoob,

 

Currently, this feature is not supported in Power BI Desktop, you could vote this idea which has been submitted in Power BI ideas forum.

 

For the workaround, I have made a test that you could create two measures to get the result below.

 

sales1 = IF(SUM(Test[Sales])>40,BLANK(),SUM(Test[Sales]))
sales2 = IF(SUM(Test[Sales])>40,SUM(Test[Sales]),BLANK())

 

Capture.PNG

 

The line chart shows red which sales >40 and black which sales<=40.

 

Best Regards,

Cherry

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

View solution in original post

Highlighted
Frequent Visitor

Re: Line Chart: Conditional Formatting

Thanks Piga, will try it out!

 

 

Highlighted
Frequent Visitor

Re: Line Chart: Conditional Formatting

BI Color.PNG

 

works like a charm. thanks mate!

Highlighted
Frequent Visitor

Re: Line Chart: Conditional Formatting

Hi,

 

If you created two measures one with greater than target & lesser than target, how were you able to achieve continous line with Color formating ?

 

Thanks in Advance,

Sai

Highlighted
Regular Visitor

Re: Line Chart: Conditional Formatting

hi,

 

i am new to Dax and power BI.

 

can share with me how this work? where do you enter the DAX code to make the two line appeared in the visual chart? 

 

how can we create another table to record down all the points that are out of the boundary?

Highlighted
Helper II
Helper II

Re: Line Chart: Conditional Formatting

@PowerNoob 

Kindly help me how to join this line as shown above. I created 2 measures for this, but the lines are not joining.

Highlighted
Helper I
Helper I

Re: Line Chart: Conditional Formatting

KPI.PNG

 

When trying to recreate this code, I cannot get the continous line to go below the specified target, does anyone have a solution?

Highlighted
Helper II
Helper II

Re: Line Chart: Conditional Formatting

How to achieve this?  would you kindly to share, please.   thank you

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors