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
Syndicate_Admin
Administrator
Administrator

Problem Total Average Category

Hello dears,

I would like to receive your help with the following problem.

I need to take the average of the total of a category, I am using the AVERAGE function but the tool with this function takes me the average of each month and the average of the total and what I need is that I only get an average of the total of the sum of the months (that is, the total)

Thank you for the help you can give me

Captura.PNG

As you see this table my problem is that I require the average of 2,568 which is the total of the column # Employees, the average is (642) and with the average function I get the average of each month and the average of the accumulated also resulting in 45.86, is there any way that I only get the average of the accumulated and ne leave the original values of the month to month?

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @Syndicate_Admin @Anonymous 

You can create the measures below,

sum= sumx(table,[# Employees])

count= calculate(countrows(table),filter(all(table),[# Employees]>0))

average= divide([sum],[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.

SpartaBI
Community Champion
Community Champion

@Syndicate_Admin basically you should use this logic:
MEASURE = AVERAGEX('Table'[Year_Month Column In Table], [Original Avg Measure])
Hard to give more info as there was no example supplied, but maybe that measure was all you needed.


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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