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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Adding average to stacked bar chart

Hello everyone!

 

Is there any way to add average line to stacked bar chart?

Temrilan_0-1614683088908.png

I need my average line to change depending on what filter via slicer I choose

I do not see any way of adding it here, but I hope for your help

Best regards,

Temirlan

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous 

You cannot add average line to a separate stacked bar chart. You should use the clustered bar chart, the displayed visual should be the same but you can use more analytic features.

V-pazhen-msft_1-1614845696508.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

5 REPLIES 5
paulasanta
Frequent Visitor

Did you make it work? I also need to add an average line on my stacked graph and change it upon time period. Thanks,

Paula

Anonymous
Not applicable

@Anonymous 

You cannot add average line to a separate stacked bar chart. You should use the clustered bar chart, the displayed visual should be the same but you can use more analytic features.

V-pazhen-msft_1-1614845696508.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

 

themistoklis
Community Champion
Community Champion

@Anonymous 

 

I suggest you create a measure first and then add it to the graph and see if it helps.

Maybe the links below will help:

https://community.powerbi.com/t5/Desktop/How-to-calculate-an-average-line-in-the-Line-Chart/td-p/232371

 

https://blog.enterprisedna.co/showcasing-trends-using-moving-average-techniques-in-power-bi/

 

 

Anonymous
Not applicable

Unfortunately, it doesn't help, I can either have my data or measure on the graph

@Anonymous 

Have you checked whether you can add the measure on a dual y-axis chart?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.