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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
PBI_LuckyLuke
Regular Visitor

Show Average in Grant Total

Hi team,

 

I have a table below and I would like to show the average at the grant total level (the last column). Any suggestion please. Thanks

 

 JanFebMarAprMayJunJulAugSepOctNovDecTOTALAverage
Sale1002003004005006007008009001000110012007800650
Cost4060801001201401601802002202402601800150
Net601402203003804605406207007808609406000500

 

Regards,

 

Luke

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @PBI_LuckyLuke ,

 

Thanks to @FreemanZ  for the valuable input. I will provide more details to get the expected results. I took the following steps:

 

1.Unpivot the column of the data provided:

 

vlinhuizhmsft_0-1721962407380.png

 

2.Create measures:

 

average = CALCULATE(AVERAGE('Table'[Grant]),ALLEXCEPT('Table','Table'[Type]))

 

3.The final result is as follows:

 

vlinhuizhmsft_2-1721962487524.png

Best Regards,
Zhu
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @PBI_LuckyLuke ,

 

Thanks to @FreemanZ  for the valuable input. I will provide more details to get the expected results. I took the following steps:

 

1.Unpivot the column of the data provided:

 

vlinhuizhmsft_0-1721962407380.png

 

2.Create measures:

 

average = CALCULATE(AVERAGE('Table'[Grant]),ALLEXCEPT('Table','Table'[Type]))

 

3.The final result is as follows:

 

vlinhuizhmsft_2-1721962487524.png

Best Regards,
Zhu
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

 

FreemanZ
Super User
Super User

hi @PBI_LuckyLuke ,

 

the key is to unpivot your table first, then everything will become more intiuitive. 

 

about unpivot:

https://learn.microsoft.com/en-us/power-query/unpivot-column

 

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.