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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.