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 August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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