cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RahimZulfiqar Frequent Visitor
Frequent Visitor

How To Add Vertical/Average Line To Bar Chart In Power BI?

When you use a bar chart to show the data, in some cases, you may want to add a vertical line into the bar chart to obviously show the average of the data. How to add a vertical/average line to a bar chart in Power BI?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: How To Add Vertical/Average Line To Bar Chart In Power BI?

Go to the Analytics pane (weird sort of magnifier looking type icon with too short of a handle) under your VISUALIZATIONS and then expand "Average Line" and click "Add".

 

Don't cross post. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

View solution in original post

3 REPLIES 3
Super User
Super User

Re: How To Add Vertical/Average Line To Bar Chart In Power BI?

Go to the Analytics pane (weird sort of magnifier looking type icon with too short of a handle) under your VISUALIZATIONS and then expand "Average Line" and click "Add".

 

Don't cross post. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

View solution in original post

RahimZulfiqar Frequent Visitor
Frequent Visitor

Re: How To Add Vertical/Average Line To Bar Chart In Power BI?

Thank you 🙂

Highlighted
RahimZulfiqar Frequent Visitor
Frequent Visitor

Re: How To Add Vertical/Average Line To Bar Chart In Power BI?

What if the average number changes frequently? In the above solution we need to write hardcoded but as the data changes or increases then what to do with the average number?

Helpful resources

Announcements
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)