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 🙂

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
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 141 members 1,610 guests
Please welcome our newest community members: