Forum Discussion
austinsense
10 years agoImpactful Individual
Problem with STDEV
I was working with a client to calculate Value at Risk over a rolling window of time - this requires calculating the standard deviation over the period which I figured would work just great - here's ...
- 10 years ago
I think at this point you go to https://support.powerbi.com and use the Contact Support link to submit a bug.
Greg_Deckler
10 years agoCommunity Champion
Curious what happens if you use STDEVX.P with your FILTER instead of wrapping your STDEV.P inside a CALCULATE.
- austinsense10 years agoImpactful Individual
Same result, I tried it both ways
- Greg_Deckler10 years agoCommunity Champion
I think at this point you go to https://support.powerbi.com and use the Contact Support link to submit a bug.
- rgupta185 years agoHelper I
austinsense What is the calc. behind the VAR (averageprice and days) below:
// Standard Deviation Formula over a 10 Day Rolling Window (From Scratch)
:= VAR averageprice = [AVG Price Change Last 10 Days] VAR days = [COUNT Days] RETURN SQRT ( DIVIDE ( SUMX ( FILTER (ALL ( Data ), Data[Date] > ( MAX ( 'Date'[Date] ) - 11 ) && Data[Date] < MAX ( 'Date'[Date] ) ), ( Data[Prices Change $] - averageprice ) ^ 2 ), days ) )I am running into issue as well when using the STDDEVX.S formula .