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
alexbalazsalex
Helper IV
Helper IV

Column subtotal sum row subtotal average

Dear All,

 

I would need you support for the below issue :

 

Basically the column subtotals are correct showing the sum of each row ... but for the row subtotal i would like average  (at the moment showing sum also there)...

 

IS that possible?

 

Capture.PNG

 

Many Thanks,

Alex

1 ACCEPTED SOLUTION
v-xuding-msft
Community Support
Community Support

Hi @alexbalazsalex ,

You could create a measure with the functions of AVERAGEX and VALUES to implement it.

 

Here is my sample. Please reference it to modify yours.

Total sales = CALCULATE(SUM('Table'[Sales]))

Avg = AVERAGEX(VALUES('Table'[Product]),[Total sales])

1.PNG

 

Best Regards,

Xue Ding

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

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

View solution in original post

4 REPLIES 4
v-xuding-msft
Community Support
Community Support

Hi @alexbalazsalex ,

You could create a measure with the functions of AVERAGEX and VALUES to implement it.

 

Here is my sample. Please reference it to modify yours.

Total sales = CALCULATE(SUM('Table'[Sales]))

Avg = AVERAGEX(VALUES('Table'[Product]),[Total sales])

1.PNG

 

Best Regards,

Xue Ding

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

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

Many Thanks @v-xuding-msft 

 

Sometimes we tend to over complicate some things in our head .... very usefull & Gratefull for your feedback

 

Alex

alexbalazsalex
Helper IV
Helper IV

sorry just a clarification as i made a mistake ... i would want column subtotal as average and row subtotal leave as it is as sum.

 

Thanks

@alexbalazsalex ,

 

Share Data in table format with expected output and mark me @

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.