Forum Discussion
theitguy
8 years agoHelper I
Calculation on Grouped Values
Hi guys, I would like to create a measure which calculates the standard derivation of sums from a group-by action. I have the following table: launch_history_id Date Seconds_Spend Scor...
- 8 years ago
HI theitguy
Try this MEASURE
Measure = VAR MyColumn = SUMMARIZE ( TableName, TableName[Participant_ID], "TotalSeconds", SUM ( TableName[Seconds_Spend] ) ) RETURN STDEVX.P ( MyColumn, [TotalSeconds] )
Zubair_Muhammad
8 years agoCommunity Champion
HI theitguy
Try this MEASURE
Measure =
VAR MyColumn =
SUMMARIZE (
TableName,
TableName[Participant_ID],
"TotalSeconds", SUM ( TableName[Seconds_Spend] )
)
RETURN
STDEVX.P ( MyColumn, [TotalSeconds] )- Zubair_Muhammad8 years agoCommunity Champion
- theitguy8 years agoHelper I
Thank you very much! I did not know that I can assign tables to variables as well. :)