Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have this data set where i need to calculate the standard deviation based on the AVG column. What I would like to know is whether it is possible for me to have absolute cell reference for the AVG column, that way my answer for the STDEV would be a fixed value for all of the entries. I have used a measure to calculate the AVG.
Any help or tips will be really appreciated.
Thanks in Advance.
Hi @ahmed1997 ,
There are 4 standard deviation functions in DAX, STDEV.P, STDEV.S, STDEVX.P, STDEVX.S. If your data represents the entire population, use .P version, otherwise if it is a sample, use the .S version.
Try like below:
STM =
CALCULATE(
STDEV.P('Table'[Avg]),
ALLEXCEPT('Table','Table'[Month ])
)
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @v-henryk-mstf
So I have calculated the STD and the numbers are showing okay.
However, just to cross check I exported the Data onto Excel to see if I get the same result there using STD. Unfortunately, in Excel my STD Value is different compared to power bi.
I've attached a screenshot of the measure, and I've used the STDEVX.S as this is a sample from the population.
User | Count |
---|---|
87 | |
72 | |
69 | |
64 | |
54 |
User | Count |
---|---|
99 | |
91 | |
80 | |
74 | |
64 |