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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ACU
Regular Visitor

Standard deviation of population in columns

Hello,

I need to calculate the standard deviation of a population made of monthly part sales (quantities). Each row gives the historic consumption (from 1 month in the past - Cons_1Month - to 12 months in the past - Cons_12Months ) of a part number - ITEMID.

I need the std.dev, for every rows (each p/n), of the population made of columns "Cons_1Month" to "Cons_12Months"

ACU_0-1640078373664.png

I prefer not to transpose as I have several other pieces of information I need to keep for each PN.

 

I found only ways to calculate std.dev per columns. Any idea ?

 

Thank you !

AC

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @ACU 

 

If the following methods didn't solve your problem. Can you provide a PBIX file that is available for testing? What do you expect the results to look like that can be shown in an example Excel chart. I look forward to hearing from you.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ValtteriN
Super User
Super User

Hi,

You could do the unpivot operation to a calculated table and use that new table with RELATED to calculate standard deviation to your original table.

Example DAX (add ID to its own column in the UNION):

coltable = UNION(
SELECTCOLUMNS('STDEV',"col",[1]),
SELECTCOLUMNS('STDEV',"col",[2]),
SELECTCOLUMNS('STDEV',"col",[3]),
SELECTCOLUMNS('STDEV',"col",[4]),
SELECTCOLUMNS('STDEV',"col",[5]),
SELECTCOLUMNS('STDEV',"col",[6]),
SELECTCOLUMNS('STDEV',"col",[7]),
SELECTCOLUMNS('STDEV',"col",[8]),
SELECTCOLUMNS('STDEV',"col",[9]),
SELECTCOLUMNS('STDEV',"col",[10]),
SELECTCOLUMNS('STDEV',"col",[11]),
SELECTCOLUMNS('STDEV',"col",[12]))
I hope this helps!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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