Question about DAX Standard Deviation function

Guinaba

Board Regular
Joined
Sep 19, 2018
Messages
217
Office Version
  1. 2016
Platform
  1. Windows
Hi experts,

Not sure why I am getting different results when calculating standard deviation in Excel and DAX using the same data sample.

In Excel using STDEV.S(C9:N9) the result is 2176


Mth_1Mth_2Mth_3Mth_4Mth_5Mth_6Mth_7Mth_8Mth_9Mth_10Mth_11Mth_12StDev
12118805991806352686367978548765788457063635229162176


Using DAX function STDEVX.S the result is 342

STD (12mth):=STDEVX.S(RawData,CALCULATE([Mth1]+[Mth2]+[Mth3]+[Mth4]+[Mth5]+[Mth6]+[Mth7]+[Mth8]+[Mth9]+[Mth10]+[Mth11]+[Mth12])) = 342

Gilly
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
I transposed the original data set into the following table and imported into PP:

1578480816947.png


The standard deviation function then becomes a simple:

Std Dev:=STDEV.S(STD[Amount]) = 2,176.02

I noticed the function worked better for me calculating straight down on a single measure (amount) then it did across multiple measures.
 
Upvote 0
Thanks @karim muhtasib! Good catch!!
Would you know how can I transpose this data to achieve your result? I am using Power Pivot (Excel 2013) so I don't have selectcolumn function available :(
 
Upvote 0
the cleanest way would to do it would be at the data source level and bring back into your data model. delete the the previous connection and re-import the updated data source (after the manual copy- paste special- transpose treatment).
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,731
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top