Forum Discussion
Help to find Standard Deviation
Ah, it sounds like you are trying to do an aggregation. The trick there is to use SUMMARIZE. See this article:
https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149
A quick measure still creates a real measure, it just does it quickly without you having to hand-type the DAX code.
I'm Sorry. I think I didn't make it clear.
My problem is, STDEV.P expects column to calculate. But I have it as a measure which I need to find Std Dev.
Let's say,
I wanted to calculate Standard deviation for rolling month average. But it is actually a measure. So I'm unable to use it in STDEV.P().
Is there a way to calculate rolling N month average as a calculated column?
Kindly help me!
- Greg_Deckler8 years agoCommunity Champion
Right, so that article shows the use of SUMMARIZE, so you put your grouping and your measure into the SUMMARIZE. This essentially turns the measure into a column in the context of the table coming back from SUMMARIZE and then you can use whatever aggregation on that. In your case you would want to use the STDEVX.P function. Note the "X".
- SivaMani8 years agoResident Rockstar
I tried the same. Unfortunately, I got the following warning,
A circular dependency was detected
- Anonymous8 years agoNot applicable
SivaMani,
Please take a look at the following blog and similar thread about how to calculate standard deviation of a measure.
Standard Deviation Demystified in Power Pivot
Calculating standard deviation of the calculated measure
Regards,
Lydia