Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
Wondering if I can condition format a Line chart in power bi or alternatively if there is any custom visual to use.
Appreciate your help.
kind Regards,
Chiru
Your post has been changed because invalid HTML was found in Hello there,
I am following your option to solve the graph, but there are some parts that do not conform to reality, I indicate it in the screenshot.
I would appreciate your telling me what I may be doing wrong. Thank you.


Hi @chiru5262 ,
We create a sample and you can refer it.
1. Create a line chart using value. And configure an alert line.
2. Then we can create a measure using IF function.
greater than 20 = IF(CALCULATE(SUM('Table'[value]))>20,CALCULATE(SUM('Table'[value])),BLANK())
Put the measure to line chart and change its color, the result like this,
If it doesn't meet your requirement, Could you please show the exact expected result based on the tables that we have shared?
BTW, pbix as attached.
Best regards,
Community Support Team _ zhenbw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
How can I achieve if the data before the current one is lower, the color is black, and if the data is less than the current one, the color is red.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 35 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 38 | |
| 35 | |
| 23 |