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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Marcus2
Helper I
Helper I

Consolidating data with same dates; calculating standard deviation for process control chart

Hi, here is a sample data set for the type of problem that I have.

DateNo Observations
1/1/2024  3
1/1/2024  5
1/8/2024  2
1/8/2024  3
1/15/2024  4
1/15/2024  6

 

I would rather group by date, then calculate my standard deviation in DAX.

DateNo Observations
1/1/2024  8
1/8/2024  5
1/15/2024  10

 

Using Excel Std Dev = 2.52

How can I group dates and then find standard deviation in DAX?  I would like weekly observations on my Process Control Chart.

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

If you are analyzing by week, I suggest having Calendar Dimension table something like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1711511115694.png

 

Jihwan_Kim_1-1711511430817.png

 

 

 

STDEVX.S function (DAX) - DAX | Microsoft Learn

 

Observation total: = 
SUM( Data[No Observations] )

 

Standard deviation: = 
STDEVX.S( ALL('Calendar'[Start of Week]), [Observation total:])

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

If you are analyzing by week, I suggest having Calendar Dimension table something like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1711511115694.png

 

Jihwan_Kim_1-1711511430817.png

 

 

 

STDEVX.S function (DAX) - DAX | Microsoft Learn

 

Observation total: = 
SUM( Data[No Observations] )

 

Standard deviation: = 
STDEVX.S( ALL('Calendar'[Start of Week]), [Observation total:])

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.