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
Anonymous
Not applicable

AVERAGE

Hi All,

 

I get two different outputs while using AVERAGE. In excel, i get a different value and in PowerBI a different value.

Can I know why that is happening?

 

I have attached the images below:

Megha3012_0-1630062859386.pngMegha3012_1-1630062890042.png

 

Any help would be appreciated!

 

Thank you!

1 ACCEPTED SOLUTION

If you are creating a

ABC = 
DIVIDE(AVG2[col1]+AVG2[col2]+AVG2[col3]+AVG2[col4]+AVG2[col5],

IF(ISBLANK(AVG2[col1]),0,1)+
IF(ISBLANK(AVG2[col2]),0,1)+

IF(ISBLANK(AVG2[col3]),0,1)+
IF(ISBLANK(AVG2[col4]),0,1)+

IF(ISBLANK(AVG2[col5]),0,1)
,BLANK())

calculated column then you may need to use this.

 

 

 

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




View solution in original post

6 REPLIES 6
FarhanAhmed
Community Champion
Community Champion

The average function skips the Blank/NULL values from data. i.e. if the Price is null for the period then that period will not be calculated on Average. And when you are writing the DAX formula in Power BI you are explicitly dividing it by 9 hence giving you an average of by 9.







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Anonymous
Not applicable

@FarhanAhmed  Thank you!

Can I also know how to correct the formula so as to get the same result as excel?

 

In Divisor you need to put something like 

 

= VALUES / ( COUNT(column1) + COUNT(Column2) + COUNT(column3) .... COUNT(Column9))

 

this count will give nothing when it finds null values. so it will divide your data by 5 instead of 9. if all columns have some value then it will divide by 9







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Anonymous
Not applicable

Hi @FarhanAhmed ,

Thank you!

When I apply that formula I get 0%.

I have attached the image below:

Megha3012_0-1630065848841.png

 

If you are creating a

ABC = 
DIVIDE(AVG2[col1]+AVG2[col2]+AVG2[col3]+AVG2[col4]+AVG2[col5],

IF(ISBLANK(AVG2[col1]),0,1)+
IF(ISBLANK(AVG2[col2]),0,1)+

IF(ISBLANK(AVG2[col3]),0,1)+
IF(ISBLANK(AVG2[col4]),0,1)+

IF(ISBLANK(AVG2[col5]),0,1)
,BLANK())

calculated column then you may need to use this.

 

 

 

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Anonymous
Not applicable

Thanks a lot! @FarhanAhmed 

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

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