Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Tricky - Calculate average of data set

Hi Experts

 

See attached sample pbix file. The score card shows a average calculate of 0.04 when the expected result is 0.35...

Not sure where the error is..

 

https://www.dropbox.com/s/oaoujisc9rxxur0/Average.pbix?dl=0 

  •  

    Net Amt % AVG V2 : =
    VAR _tablesummarize =
    ADDCOLUMNS (
    SUMMARIZE ( 'STD Dev', 'STD Dev'[Date] ),
    "@sumbydate", CALCULATE ( SUM ( 'STD Dev'[Net Amt %] ) )
    )
    RETURN
    AVERAGEX ( _tablesummarize, [@sumbydate] )

     

     

    Link to the PBIX file 

     

     

3 Replies