Learn how to get the most out of Power BI data label conditional formatting for line charts.
In this video, I'll take you through the steps of setting up conditional formatting of data label colours. The colour of the data label will change depending on whether the data point is above or below a given threshold.
In this example, I'll use DAX code in a measure to build the conditional formatting rules. However, they can also be defined using the Power BI conditional formatting rule builder.
I'll then explain a neat workaround for making sure that the data labels at low and high points on your line graph don't get covered by the solid line. If the data points are obstructed by the line graph line it makes it hard to see the value.
If it's one of the values you've applied the conditional formatting to and you want it to stand out, not be harder to see. Plus values at the bottom and top of the charts are those that are more likely to be under or over a given limit or threshold so are probably the values you want to view.
----------------------------------
⏩ Video Navigation
----------------------------------
00:00 - Introduction
00:40 - Getting started
01:49 - Creating a measure to define the rule
02:40 - Adding the measure to the data label colour
03:21 - Fixing issue with conditional formatting feature
04:50 - Hiding data labels values that are above the target
06:39 - Setting location of data labels
07:22 - Measure for finding min valve for the y-axis
09:10 - Adding measure to min y-axis range
09:51 - Simplify target line description
10:31 - Bolding the data label values
-----------------------------------------------------
🎥 Related Videos
-----------------------------------------------------
• Finally...Conditionally Formatting Po...
Finally...Conditionally Formatting Power BI Line Graph Labels...Unfortunately, It's Almost Useless
QT#43 - Dynamically Set Power BI Line Graph Y-Axis Start & End Range - Stop Labels Overlapping Line
• QT#43 - Dynamically Set Power BI Line...
Maintenance KPI - Percentage of Proactive and Reactive Work Hours Completed
• Maintenance KPI - Percentage of Proac...
(video explaining how to build the dashboard used in this video.
-----------------------------------------------------
🎓 Power BI Dashboard Training
-----------------------------------------------------
👉FREE Power BI Quick Start Course - Learn how to create your first dashboard in around 90 minutes!
https://effectivedashboards.com/power...
👉 Power BI Quick Start PLUS - Learn how to craft KPI management dashboards that really do help you, your boss, and your peers make better decisions!
https://effectivedashboards.com/power...
-------------------------
📁 Resources
-------------------------
👉Access to the source PBIX files for my YouTube videos:
https://effectivedashboards.com/cours...
👉Article series on creating a maintenance management system data model and how to address the human factors of data collection for improved data quality. (This is not just relevant to maintenance and reliability data).
https://effectivedashboards.com/data-...