Here’s a question from Joey :
I’m creating performance reports in Power BI, and I need to add a target line to my charts. How can I add a reference line to scatter, bar, and line charts to show our company’s performance goals across different metrics?
Our Answer
This tutorial will guide you through the process of adding reference lines to scatter, bar, and line charts in Power BI, using an HR performance scenario as an example. When the purpose is to show direction over time rather than a fixed target, compare trend lines with static reference lines before choosing the Analytics option.
Data Model
Assume we have a single table named “Employees” with the following columns:
- Employee ID (Text)
- Department (Text)
- Month (Date)
- Sales Amount (Decimal)
- Customer Satisfaction (Decimal)
- Productivity Score (Decimal)
Step-by-Step Instructions
1. Create a measure for the reference line in Power BI
First, we will go ahead and create a measure for our target line. In this example, let’s set a monthly sales target of $10,000.
In Power BI – from the Modeling tab create the following measure definition:
Sales Target = 50000
2. Add a reference line to a bar chart
- Create a stacked column chart using “Month” on the axis and “SalesAmount” as the value.
- Select your chart, then from your right side pane, hit Format.
- In the Format section, scroll down to the Reference Line section.
- Define your reference line settings and customize the line’s appearance (color, style, etc.) as needed. Note that we use the measure defined in the previous step to define the value of the benchmark line.
Here’s our custom line definition:

Here’s our chart with the benchmark line:

3. Add a reference line to a line chart
- Create a line chart using “Month” on the axis and “ProductivityScore” as the value.
- Create a new measure for the productivity target:
Productivity Target = 85
- Follow steps in the previous section (bar chart instructions), using the “Productivity Target” measure.
4. Add a reference line to a scatter chart
- Create a scatter chart with “SalesAmount” on the X-axis and “CustomerSatisfaction” on the Y-axis.
- To add a vertical reference line, use the “Analytics” pane and add a constant line for the X-axis.
- To add a horizontal reference line, repeat the process for the Y-axis.
Make the reference line respond to the intended filter context
Start this Power BI reference lines check with one reproducible example and preserve the current configuration. The goal is to identify the affected layer before applying a broad reset, so change one material factor at a time and repeat the same test.
Isolate the affected layer
Decide whether the benchmark is a fixed target, an overall average, a selected-period result, or a peer-group measure. A constant line should not move; a measure-based line can change with slicers and relationships.
Build and validate the benchmark measure in a table before placing it on a chart. For scatter charts, distinguish X-axis, Y-axis, percentile, and symmetry lines, and verify that the chosen analytics option is supported by that visual type.
Verify the result safely
Test a single category, multiple selections, no-data periods, and totals. Label the line with its meaning and units, and avoid a misleading scale that makes small deviations appear dramatic.
On a managed work device or tenant, a missing or reverting control may be intentional policy. Do not bypass it locally; test with non-sensitive content and ask the responsible administrator to confirm the assigned configuration.
When escalation is necessary, provide versions, timestamps, exact error text, and the smallest reproducible example, with confidential values removed. This lets support focus on the correct layer.
Use a before-and-after check that covers the primary task and its nearest dependency. For shared work, verify permissions and ownership as well as the visible result. A fix is incomplete when the original symptom disappears but synchronization, notifications, sorting, recovery, or another required function silently stops.
Keep temporary workarounds clearly labeled and time-limited. Remove permissions, overrides, test accounts, files, and settings that are no longer needed after the supported solution is confirmed, then repeat the standard workflow once more.
Before closing the case, repeat the test with the normal extensions, peripherals, network, and data source restored one at a time. Stop if the symptom returns; that boundary is stronger evidence than a broad reset.
Remember
- If the reference line doesn’t appear, check if the measure is correctly defined and selected.
- Ensure the line’s value falls within the chart’s axis range. Adjust the axis settings if necessary.
- Combining multiple reference lines (e.g., in scatter plots) creates quadrants for easy categorization.
How do I create a reference line that changes based on slicer selections?
Reference lines based on measures will automatically respond to filter context. If you want your target to adjust when users select specific departments or time periods, wrap your measure in appropriate filter functions. For example, use CALCULATE with ALLSELECTED to maintain slicer context while ignoring visual-level filters. This ensures your benchmark reflects the filtered dataset rather than showing a static value across all selections.
Can I add reference lines to other Power BI visuals like waterfall or funnel charts?
Reference line availability depends on the visual type. Native Power BI visuals like clustered bar charts, line charts, and scatter plots support reference lines through the Analytics pane. However, waterfall charts, funnel charts, and most custom visuals from AppSource do not include this functionality. For unsupported visuals, consider creating a separate measure that displays as an additional data series, though this won’t provide the same formatting options as true reference lines.
Why doesn’t my reference line show the correct position after changing axis settings?
Power BI calculates reference line positions based on the axis scale at the time of creation. If you modify axis minimum or maximum values, or switch between linear and logarithmic scales, the reference line recalculates automatically. However, if you’re using a measure with time intelligence functions, verify that your date table relationships are active and that the measure evaluates correctly in the current filter context. Check the Data pane to confirm your measure returns expected values before troubleshooting visual formatting.
consistent values across related visuals. This creates a cohesive analytical experience and prevents confusion when users compare different chart types showing the same metrics.