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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
POWER_TESTING
Helper I
Helper I

Average Vs AverageA

Hi Experts,

 

I'm facing problem with Average and AverageA.

Please can you clarify on this,....

I have one table..  (in my table i have True/False and null data aswell)

Table:

DATA

1

5

9

 

TRUE

FALSE

7

Average:

simple expression AVERAGE('Table'[DATA]), showing error.

Average should be 22/4= 5.5.

 

AverageA:  should be 23/6 = 3.833 because True as 1 and False as 0.

but my AverageA showing zero.

 

Thanks in Advance.....!

4 REPLIES 4
Anonymous
Not applicable

11q.PNG

average and averageA are working same now 

No difference at all

 

 
Greg_Deckler
Super User
Super User

Just to follow-up on this, I took the table from:

 

https://msdn.microsoft.com/en-us/library/ee634809.aspx

 

And created a column:

 

AverageAColumn = AVERAGEA([Amount])

 

Everything came back as 0, so something is definitely amiss. I think you should submit this as an Issue or Bug.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Super User
Super User

What is likely happening here is that your field is formatted as Text. AVERAGE is going to cause an error because it only handles numeric values. AVERAGEA is apparently not living up to its documentation. I removed all of the text values except the numeric text values it and it still gives an average of 0. Soooo...that should not be happening according to the documentation. By the way, I am thinking that your TRUE and FALSE values in a text field would both be counted as 0 (non-numeric text) versus 1 and 0. But who knows because non of it seems to be working correctly.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thank you, just few days back started work Powe BI.

Actually function wise i'm testing.... COUNT everyone knows number of records, 

just checking COUNTA, COUNTX and COUNTAX like.....  everything seems to be same result... 

 

These functions working perfect in Excel spread sheet, but not in Power BI.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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