Forum Discussion
Anonymous
4 years agoNot applicable
Grouping column
Hi! I need to create a formula, when I will use an existing table but with grouping, how can I do it?
- 4 years ago
Anonymous
Please try this
Total Scores = SUMX ( DISTINCT ( SELECTCOLUMNS ( CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[question] ) ), "@question", [question], "@score", [score] ) ), [@score] )
tamerj1
Community Champion
4 years agoAnonymous
Please try this
Total Scores =
SUMX (
DISTINCT (
SELECTCOLUMNS (
CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[question] ) ),
"@question", [question],
"@score", [score]
)
),
[@score]
)Anonymous
4 years agoNot applicable
It works for now, I need to do it couple times for some cases, but thanks a lot!!!