How to Add Average Line in Power BI
Adding an average line to a visual in Power BI can provide valuable insights and context to your data. Here is how you can achieve this:
- Select the visual or chart where you want to add the average line. You can choose from various visuals like column chart, line chart, or scatter chart.
- Go to the “Visualizations” pane on the right-hand side.
- Click on the “Analytics” tab, which is represented by a graph icon.
- Scroll down and find the “Average Line” option. Enable it by toggling the switch to “On”.
Now, let’s take a look at some examples to further explain the process:
Example 1: Adding Average Line to a Column Chart
Suppose you have a column chart visual representing sales data for various product categories. To add an average line:
- Select the column chart visual.
- Go to the “Visualizations” pane on the right-hand side.
- Click on the “Analytics” tab.
- Toggle the switch for “Average Line” to “On”.
The average line will now appear on the chart, representing the average sales across all categories.
Example 2: Adding Average Line to a Line Chart
Let’s say you have a line chart visual showing the stock prices of a company over time. To add an average line:
- Select the line chart visual.
- Go to the “Visualizations” pane on the right-hand side.
- Click on the “Analytics” tab.
- Toggle the switch for “Average Line” to “On”.
The average line will now be displayed on the chart, indicating the average stock price over the given time period.