This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I have 3 months rolling average. I need to Calculate Standard Devation for 3 months rolling average. I'm using custom calender.
Please, help on this.
Here's a measure expression that shows one way to do it.
SD P3M =
VAR vMaxDate =
MAX ( 'Date'[Date] )
VAR tP3M =
CALCULATETABLE (
ADDCOLUMNS ( VALUES ( 'Date'[YearMonth] ), "cTotSales", [Total Sales] ),
ALL ( 'Date' ),
'Date'[Date] <= vMaxDate
&& 'Date'[Date]
>= EOMONTH ( vMaxDate, -3 ) + 1
)
RETURN
IF ( COUNTROWS ( tP3M ) = 3, STDEVX.S ( tP3M, [cTotSales] ) )Pat
Hi Pat,
Thanks for your reply but It's not working.
Mavg("Fact table"."TRX_VALUE_USD"/1000000,3)-STDDEV(Mavg("Fact table"."TRX_VALUE_USD"/1000000,3))
this one created in OAC, I need to create same thing dax. Please, help me on this.
Thanks
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 8 | |
| 6 | |
| 6 |