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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
DeeMag
Helper II
Helper II

Average

Hi,

 

Can you help me why Power BI shows different average to correct average.

1st screen shot shows excel average to be 271.6 

2nd screen shot shows Power BI where average for column shows as 287.23

Is there any blog or post which helps me to find that both column wise averages match.

DeeMag_0-1624615083439.pngDeeMag_1-1624615292286.png

 

appreciate your help, thank you

 

1 ACCEPTED SOLUTION
DeeMag
Helper II
Helper II

I was able to solve that by adding addin allselected on top value function. Thanks.

View solution in original post

4 REPLIES 4
DeeMag
Helper II
Helper II

I was able to solve that by adding addin allselected on top value function. Thanks.

amitchandak
Super User
Super User

@DeeMag , If you have used a formula

Sum(A)/Sum(B)

 

Power bi will recalculate the grand total by summing up the A and B

 

In the case of excel, it is a simple avg of rows

 

in power bi you can get that like

 

averagex(Values(Table[Agent name]), Divide(Sum(Table[A]), Sum(Table[B])))

 

Where Table[Agent name] is column on which data is grouping for avg

Hi Amit,

 

The value turns out to be much lower using Averagex and Values.

can you suggest some other work around else please?

Measure = SUMX(VALUES(Cus_AgentPerformance[AgentName]),DIVIDE([Total],sumx(Cus_AgentPerformance,Cus_AgentPerformance[Inbound Calls])))
Measure 2 = AVERAGEX(VALUES(Cus_AgentPerformance[AgentName]),DIVIDE([Total],sumx(Cus_AgentPerformance,Cus_AgentPerformance[Inbound Calls])))
DeeMag_0-1624737161811.png

Thank you.

Thanks Amit, i will try the way you suggested.

 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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