Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Can anyone explain this difference for Average?

Hello  -  I am hoping someone can explain how/why Power Bi does this: 

 

I have two columns...both with exactly the same information from the same sources.    The column on the far right uses the formula below and gives the same value in Excel.    - 1.13 

 

The column next to it is the same data, but is using the Average option in the field areas.   As you can see.    But is giving a value of -2.96.      Why?  

 

Avg of Total Days Diff = CALCULATE(AVERAGE('Orders Table'[Deliv Date Diff]),FILTER('Flu Shipped','Flu Shipped'[Date Shipped]))
 
 

 

8 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi   -  No, there are no blank values.    There are zeros...but they are meant to be included.     A zero indicates the shipment went out the same day it was due.    So a due date of Feb 8  and an actual ship date of Feb 8  =   0   (on time).  

       

       

      • parry2k's avatar
        parry2k
        Super User

        Anonymous I think that is getting excluded, may be take few records, 5 or 10 with some zero values and test it manually. 0 also means FALSE and tha'ts why those are getting excluded from the average.

         

        Would appreciate Kudos 🙂 if my solution helped.

  • V-lianl-msft's avatar
    V-lianl-msft
    Community Support

    Hi Anonymous ,


    Is this problem sloved?
    If not, please let me know.

     

    Best Regards,
    Liang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.