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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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