Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Trying to Calculate Standard Deviation

Hello All,    I am trying to calculate standard deviation and most of what I have found on the internet is based on columns in a table and I am struggling with how to write a DAX formula for use wi...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Here's the measure:

    	STDEVX.P(
    		VALUES( 'Dim - Calendar'[Fiscal Week] ),
    		[your measure]
    	)

     

    Please learn DAX. Here's something to show you how complex the ALLSELECTED function is:

    https://www.sqlbi.com/articles/the-definitive-guide-to-allselected/

     

    Using in code functions the functionality of which you don't fully understand is a sure way to create things nobody will be able to understand; more, you'll be creating wrong calculations that only sometimes will be returning correct answers (and you'll be happy they do whereas they really don't). Please stay away from this practice. Learn the tool you're trying to use WELL before you start using it.

     

    Best

    D