Hi Experts
How could you calculate the STDEV,S for the last 90 days as a calculated column in power bi
Excel formula - =STDEV.S(AW4:AW93)*SQRT(252)
Solved! Go to Solution.
FAME0 90-Day Volatility 2 =
var current_day = BioDiesels[Date]
return
STDEVX.S(
FILTER(
ALL(BioDiesels),
BioDiesels[Date] in DATESINPERIOD(DimDate[Date], current_day, -90, DAY)
),
BioDiesels[FAME0 Price Interday]
)
Hi bolfri. That does not work I tried it. Unless you can roof me wrong?
Boyfriend? 😂
Can you share sample data or something? Nameing of your calendar table? Then I can help with DAX. It's all about running -90 days on calendar to the current date on your table.
Boyfriend? - Auto correct. LOL
1. i satrted the calculation (calculated column measure)
FAME0 90-Day Volatility 2 =
var current_day = BioDiesels[Date]
return
STDEVX.S(
FILTER(
ALL(BioDiesels),
BioDiesels[Date] in DATESINPERIOD(DimDate[Date], current_day, -90, DAY)
),
BioDiesels[FAME0 Price Interday]
)
Hi thanks for the feedback butthe expexted end result did not agree with excel
User | Count |
---|---|
133 | |
59 | |
55 | |
55 | |
46 |
User | Count |
---|---|
129 | |
74 | |
54 | |
53 | |
51 |