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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Medmbchr
Helper IV
Helper IV

Calculate Standard Deviation on columns

Hi

 

I have a table with 13 columns: SKU ID and consumptions over 12 months, each month in a column.

 

I am struggling to calculate standard deviation of the 12 months, I found no DAX formula except STDEV.P which needs all values in one column, I want to use SUMMARIZE but my case is too complicated since I need to calculate a "dynamic" standard deviation based on my review periods.

 

How can I calculate standard deviation on multiple columns instead of one?

 

Thanks

5 REPLIES 5
mh2587
Super User
Super User

yeah with UNION() and SelectColumn() combination
referring you to this article 

https://stackoverflow.com/questions/50213905/is-it-possible-to-unpivot-in-power-bi-using-dax


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



mh2587
Super User
Super User

Check the details of these functions might be helpful STDEVX.S 、STDEVX.P、 STDEV.PSTDEV.S


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Hi

 

As I said, these formulas need all data to be in one column, while I have my values spread over 12 columns.

I need another way.

if possible Unpivote these columns into single column 


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Is unpivot possible with DAX?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors