Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
4 years ago
Solved

Standard Deviation without considering 0

Good afternoon capos,

I am trying to calculate the standard deviation based on the yield what happens is that it brings 0 (zeros) then the deviation comes out an absurd value I have tried to do it with if but I can not get it with the formula.

I am using a measure to calculate the yield (Volume/Hours), as I need to have the data for the overall total of the product at the end of the month.

ProductDayVolume (Tons)Hours Worked (Hours)Yield (Tons / Hours)
11/9/2021178455 32,44
102/09/2021201533 61.06
19/03/2021102134 30.03
14/9/202100 -
15/9/2021208663 33.11
16/9/2021206836 57,44
17/9/2021239032 74,69
18/9/2021106639 27,33
19/9/20212269sixty-five 34,91
110/09/2021230345 51,18
111/9/2021243143 56,53
112/09/202100 -
113/9/2021209144 47,52
114/9/2021296749 60,55
115/9/2021212555 38,64
116/9/2021203988 23.17
117/9/2021152580 19.06
  • Hi, Syndicate_Admin ;

    Please try to create a measure to calculate the standard deviation.

    standard deviation = STDEVX.P(ALL('Table'),DIVIDE([Volume (Tons)],[Hours Worked (Hours)]))

    The final output is shown below:

    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • You should be able to solve this by applying a report level filter Volume>0

  • v-yalanwu-msft's avatar
    v-yalanwu-msft
    Community Support

    Hi, Syndicate_Admin ;

    Please try to create a measure to calculate the standard deviation.

    standard deviation = STDEVX.P(ALL('Table'),DIVIDE([Volume (Tons)],[Hours Worked (Hours)]))

    The final output is shown below:

    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.