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
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
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.