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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Show average value in stacked bar chart for multiple months selected in slicer

Hello,

I have a table which contains certain values per month. I've created a stacked bar chart to show these values and a slicer with the month names so I can select the month and see the corresponding value for that specific month. If I select more than one month, though, the chart shows the sum for the months selected. I want it to show the average instead: if I select January, February and March, for example, I want the chart to show the average of the values for the quarter, and not the sum of them. How is it possible to achieve this result? Thanks in advance.

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

The easiest way is to change the setting to Average

vxiaotang_0-1644567681985.pngvxiaotang_1-1644567923765.png

Also, you can create a measure to calculate average of selected values. 

For example, you can use function AVERAGE()

Measure = AVERAGE('Table'[value])

vxiaotang_2-1644568060818.png

or calculate the count of selected months, then calculate the total of related values, finally use divide(total,count).

 

Best Regards,

Community Support Team _Tang

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

View solution in original post

1 REPLY 1
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

The easiest way is to change the setting to Average

vxiaotang_0-1644567681985.pngvxiaotang_1-1644567923765.png

Also, you can create a measure to calculate average of selected values. 

For example, you can use function AVERAGE()

Measure = AVERAGE('Table'[value])

vxiaotang_2-1644568060818.png

or calculate the count of selected months, then calculate the total of related values, finally use divide(total,count).

 

Best Regards,

Community Support Team _Tang

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors