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

Highlighted
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
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (1,587)