Forum Discussion

HarryS's avatar
HarryS
Helper I
7 years ago
Solved

Standard Deviation issue

Hello, Bit of a strange request. My organisation recently started using Power BI and we are transitioning from our old way of reporting to equivalent Power BI Dashboards and struggling a bit with ...
  • Anonymous's avatar
    Anonymous
    7 years ago

    HarryS -

    You can do the following:

     

     

    Std Dev = 
    var a = SUMMARIZE(yourtable,yourtable[Date],"countitems", COUNT(yourtable[ID]))
    return STDEVX.P(a,[countitems])
    Mean = 
    var rowcount = COUNTROWS(yourtable)
    var datecount = DISTINCTCOUNT(yourtable[Date])
    return DIVIDE(rowcount,datecount)

    Cheers!

    Nathan