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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
PKPK90
Helper I
Helper I

STDEVX.P measure with missing dates

Hi,

I am trying to calculate standard deviation for dynami period of time. User will use slicer to filter dates, then measure will calculate standard deviation based on selection. I might be simple but, my sales is not continious, so for some weeks I do not have values.

 

This is my measure. I am trying to get all weeks between dates and pull 0 when there is no data.

QuantityADJ =
IF(ISBLANK(SUM(MaterialTransactions[Quantity])),0,SUM(MaterialTransactions[Quantity]))
 
Standard Deviation ADJ = CALCULATE(STDEVX.P(MaterialTransactions,MaterialTransactions[QuantityADJ]),ALLSELECTED('Calendar'[Week]))
 
It looks like it is taking into accout only weeks with quantity, it is ignoring 0. Result should be ~33 but it is showing ~51.
Any advice?

PKPK90_0-1678893571552.png

 

2 REPLIES 2
wdx223_Daniel
Super User
Super User

try this

STDEVX.P(MaterialTransactions,MaterialTransactions[QuantityADJ]+0)

Thanks for your feedback but it is not working.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.