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

Average and sum

Maybe someone can help me how if I calculate below:

        jan    feb    mar    apr    may   Jun  July  Average
A     100   200    50     300    700    100          241.7
B      50    100    100    200                             112.5
C      10    50      30     100    60      100          58.3
D              10      20     30      20      10            18.0
                                                                Sum 430.5

 

Thank You

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous 

Column =
VAR n = CALCULATE(COUNTA(Test[Jan])+COUNTA(Test[Feb])+COUNTA(Test[Mar])+COUNTA(Test[Apl])+COUNTA(Test[May])+COUNTA(Test[Jun]),ALLEXCEPT(Test,Test[Category]))
Return DIVIDE(CALCULATE(SUMX(Test,Test[Jan]+Test[Feb]+Test[Mar]+Test[Apl]+Test[May]+Test[Jun]),ALLEXCEPT(Test,Test[Category])),n,0)
Second approach
It will be better if you can pivot the table and then calculate the average

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@Anonymous 

Column =
VAR n = CALCULATE(COUNTA(Test[Jan])+COUNTA(Test[Feb])+COUNTA(Test[Mar])+COUNTA(Test[Apl])+COUNTA(Test[May])+COUNTA(Test[Jun]),ALLEXCEPT(Test,Test[Category]))
Return DIVIDE(CALCULATE(SUMX(Test,Test[Jan]+Test[Feb]+Test[Mar]+Test[Apl]+Test[May]+Test[Jun]),ALLEXCEPT(Test,Test[Category])),n,0)
Second approach
It will be better if you can pivot the table and then calculate the average

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.