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
Anonymous
Not applicable

Total average per category

Hi,

 

I am currently trying to calculate the total average for a category over a period.

 

I want the data/table looking like this:

 

Supplier/Period         17/18                    18/19                  19/20                     20/21                     

                             AVG   ACTUAL      AVG   ACTUAL     AVG   ACTUAL     AVG   ACTUAL          

1                            10%      10%         10%       20%        10%      5%          10%       5%          

 

The actual data is a measure.

 

Right now, with the calculations that I have tried, it just shows either the same as the actual or a number, which I can not figure out how it is calculated.

 

I hope you can help.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@amitchandak 

 

Hmm... all of the values of the measure are exceptionally higher than the actual values? Shouldn't I be using Average or AverageX or something?

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Not very clear, Try a measure like

 

Avg = calculate([ACTUAL], allexcept(Table, Table[Supplier]))

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
Anonymous
Not applicable

@amitchandak 

 

Hmm... all of the values of the measure are exceptionally higher than the actual values? Shouldn't I be using Average or AverageX or something?

@Anonymous , Try

Avg = calculate(AverageX(Table,[ACTUAL]), allexcept(Table, Table[Supplier]))

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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
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.