Forum Discussion
STDEV DAX when using row with value 1
- 4 years ago
Hi:
Please see file. You willl notice I have summary table in and have set up a date table. I made up the data points but results appear to work as intended. What do you think?
https://drive.google.com/file/d/1ibEFS6MXsidsA3ny7_KnDY-UAnJ0UOde/view?usp=sharing
I am trying your code out now and getting that dreaded "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value." Assuming it is something in my setup of the table? I have this linked from a SQL database and it is a stored procedure connected to multiple tables. Probably not why this is happening but unsure. I mirrored exactly what you had written so it has to be something on my end.
Hi:
If the number of issues is always one/event than there can't be any STD becasuse everything is always one. Are you trying to get STD on monthly or weekly issues? Normally the STD would work something like this:
Test 1 - result 40
Test 2 - result 50
Test 3 - result 42
Sum = 132
Avg = 44
STD(pop) = 4.32
But when each result is one the STD = 0.
I hope my reply makes sense to you.
Thank you,
- common7634 years agoHelper III
It does. What I was hoping was to get the standard deviation from the sum of each month selected in the slicer. So for instance if the end-user selects the below:
1-2020 with 1000
2-2020 with 2000
3-2020 with 1500
Then in simple form calculate the standard deviation of those three which would be STDEV(1000, 2000, 1500)
- Whitewater1004 years agoSolution Sage
Hi:
Maybe your sample data isn't matching your latest example. I see 1 for Jan 2020 but you mention it is 1000? Do you have sample data to share? Just something to represent this issue so I can see those different totals. Thanks