Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Faculty
New Member

STDEV with a datesinperiod

Hello everyone,

I'd like to do the equivalent of this =ECARTYPE(D8:O8) but in DAX.

In fact, I'd like to calculate the standard deviation of a row over a 12-month period.
As you can see on my print screen, I have a row of numbers and I'd like to get the standard deviation of those numbers. I've tested this in Excel and I've got 38, but I can't do it in DAX.
I've already calculated the average of these numbers.

 

Faculty_0-1692008195551.png

Here's the average of each item.

Faculty_1-1692008219111.png

Thanks for you help.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Faculty ,

Please have a try.

Create a measure.

measure =
STDEVX.S (
    FILTER (
        MyTable,
        MyTable[Date] >= DATEADD ( MyTable[Date], -12, MONTH )
            && MyTable[Date] <= MAX ( MyTable[Date] )
    ),
    MyTable[Value]
)

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Faculty ,

Please have a try.

Create a measure.

measure =
STDEVX.S (
    FILTER (
        MyTable,
        MyTable[Date] >= DATEADD ( MyTable[Date], -12, MONTH )
            && MyTable[Date] <= MAX ( MyTable[Date] )
    ),
    MyTable[Value]
)

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.