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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.