Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I have a measure with the following DAX:
Solved! Go to Solution.
The pattern that should apply is this:
Logs_7d_MA_StdDev =
STDEVX.P (
VALUES ( DateTable[Date] ),
[Logs_7d moving average]
)
However, this won't work as-is because your 7-day moving average is written using Logs[Date] instead of DateTable[Date]. If you update that measure to replace each of the former with the latter, then your Std Dev measure should be good to go.
The pattern that should apply is this:
Logs_7d_MA_StdDev =
STDEVX.P (
VALUES ( DateTable[Date] ),
[Logs_7d moving average]
)
However, this won't work as-is because your 7-day moving average is written using Logs[Date] instead of DateTable[Date]. If you update that measure to replace each of the former with the latter, then your Std Dev measure should be good to go.
Okay, I tried that but my sma and new standard deviation measure both do not chart. Maybe something wrong with my date table? Any ideas?
Standard Deviation Measure
SMA
Chart
Use DateTable[Date] for the chart axis and update the 14-day measure too.
I did both of the recommendations you said. I can tell it did calculate something because when I put the measure on a tile, it gives me back the values and they change over time with a date slider. Unfortunately, I still can't get the measure to chart.
I appreciate your help. I'd been able to overlay the different SMAs. I was trying to implement bollinger bands. I did end up getting it by just substituting stdv.p to my SMA measure where the average calc went and taking off the division by period at the end. I'm going to add pics of the calcs and the result to my op in case it can help others solve their problems.
The basic approach in the first link should work but might need a bit of adjustment to your particular case.
What granularity are you trying to compute the StdDev over? Daily?
I couldn't get the link to your file to work.
Yes, it's daily over 180 days.
I fixed the link in the post. Helps if I post a shareable link lol.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 8 | |
| 5 | |
| 3 |
| User | Count |
|---|---|
| 28 | |
| 21 | |
| 20 | |
| 19 | |
| 12 |