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

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.

Reply
jpurdue
Frequent Visitor

Using STDEVX.P with a custom measure

Hello Everyone, I'm brand new to DAX and i'm trying to calculate SD. Can anyone help me out? Below are the details.

 

I have a dataflow setup from a Database that puts the below columns in a table. The "Move_time" column and the "crane_id" column. The "Move_time" column is in a date format.

 

the table looks like this. 

 

Move_time      |     Crane_ID

01:09                     151

01:15                     151

01:30                     120

02:09                     120

02:10                     151

 

I created a custom measure called Count MoveTime = COUNT(table[Move_time]) that I can use to count how many times each crane moved, so I can recap easily in reports. A recap would look like this.

 

Crane_ID     |  Count MoveTime

151                        603

120                        201

 

Since I can't simply run STDEVX.P on the (table[Move_time]) since it's a date, I'm kinda lost. How would I achieve this using the "Count MoveTime" measure?

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @jpurdue 

 

It sounds like you want the standard deviation of [Count MoveTime] per crane. Is that right?

 

If so, you should provide the distinct values of Crane_ID as the first argument, and the [Count MoveTime] measure as the second argument.

 

For example:

Standard deviation of Count MoveTime per Crane = 
STDEVX.P (
    VALUES ( table[Crane_ID] ),
    [Count MoveTime]
)

 

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

2 REPLIES 2
jpurdue
Frequent Visitor

ahh that easy huh? THANKS!!!!!!!!

OwenAuger
Super User
Super User

Hi @jpurdue 

 

It sounds like you want the standard deviation of [Count MoveTime] per crane. Is that right?

 

If so, you should provide the distinct values of Crane_ID as the first argument, and the [Count MoveTime] measure as the second argument.

 

For example:

Standard deviation of Count MoveTime per Crane = 
STDEVX.P (
    VALUES ( table[Crane_ID] ),
    [Count MoveTime]
)

 

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.