Forum Discussion

j4ymastah's avatar
j4ymastah
New Member
5 years ago
Solved

Standard Deviation and Averaging

Good day.   I am trying to get the standard deviation (SD) and average (AVE) of the following data:   LOGIN DATE - Copy Jan 01 2021 Jan 04 2021 Jan 02 2021 Jan 05 2021 Jan 03 2...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi j4ymastah 

    You can add a YearMonth column in your data model. Then you can achieve your goal by measure or calculate funtion in Table visual directly.

    Add a YearMonth column.

    YearMonth = FORMAT('Table'[LOGIN DATE - Copy],"YYYYMM")

    Measure:

    SD Per Month = CALCULATE(STDEV.P('Table'[Count]),FILTER(ALL('Table'),'Table'[YearMonth]=MAX('Table'[YearMonth])))
    AVG Per Month = CALCULATE(AVERAGE('Table'[Count]),FILTER(ALL('Table'),'Table'[YearMonth]=MAX('Table'[YearMonth])))

    Or use Average/Standard Deviation function in table visual.

    Result is as below.

    Best Regards,

    Rico Zhou

     

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