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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 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.

October NL Carousel

Fabric Community Update - October 2024

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