Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Is there a way to add an average line to a "line and clustered column chart"

Is there a way to add an average line to a "line and clustered column chart"?  

I tried the solution listed from 2017, and all I get are averages for each bar, not the entire chart.  Is there an easier way?  Is this a feature that will be coming out soon?  This apparently can be done in Tableau but not in PBIx.

 

Thanks for your help.

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Anonymous

As you mentioned, these types of charts do not have average lines as a generic feature.
But we can add more lines at any time.
Based on the original values of your bars/lines, you can calculate the average using the DAX ALL function.
As an example:

Average of line Part = CALCULATE(average('Table'[Value2]),all('Table'[Category]))

Put it as a new line.
In the attached picture, I have two averages, one for lines, and one for bars:

Ritaf1983_0-1688234994969.png

Link to the sample file 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @Anonymous

As you mentioned, these types of charts do not have average lines as a generic feature.
But we can add more lines at any time.
Based on the original values of your bars/lines, you can calculate the average using the DAX ALL function.
As an example:

Average of line Part = CALCULATE(average('Table'[Value2]),all('Table'[Category]))

Put it as a new line.
In the attached picture, I have two averages, one for lines, and one for bars:

Ritaf1983_0-1688234994969.png

Link to the sample file 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.