Forum Discussion
Line Chart: Conditional Formatting
- 8 years ago
Hi Anonymous,
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())
The line chart shows red which sales >40 and black which sales<=40.
Best Regards,
Cherry
I was unable to get the single line with changing colors that PowerNoob showed in the screen shot following the steps described in the Solved answer. Thought I would share my workaround to make it work.
I have a table with date, value, Upper & lower bounds, and is this row an Anomaly.
I added two columns looking at the Anomaly for the prior day and for the next day (both are not needed but based on what you pick will determine the color of the line connecting).
The line chart has two measures
Black is filtering on all that are currently zero or that are one now but will be zero tomorrow .
Result below...
Hope this helps...