Forum Discussion
MindIsBlank
6 years agoFrequent Visitor
DAX Version of Excel's DSTDEV
New to Power BI but have some experience with Tableau. Looking to add a measure that calculates the standard deviation for unique categorical values in a column. For example, Column A has a categ...
- 6 years ago
I figured it out. Had to use nested filtering described in this article from 2012.
Measure code looks like this:
calculate(
STDEV.P(Column B)
,FILTER(
ALL('Table')
,COUNTROWS(
FILTER(
'Table'
,EARLIER(Column A) = Column A
)
)
)
)
Tahreem24
Super User
6 years agoCreate a measure like below:
SD=STDEV.P(Table[SalesAmount])
Don't forget to give thumbs up 👍and accept this as a solution if this helps you.
SD=STDEV.P(Table[SalesAmount])
Don't forget to give thumbs up 👍and accept this as a solution if this helps you.