Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Grouping column

Hi! I need to create a formula, when I will use an existing table but with grouping, how can I do it?
  • tamerj1's avatar
    tamerj1
    4 years ago

    Anonymous 

    Please try this

    Total Scores =
    SUMX (
        DISTINCT (
            SELECTCOLUMNS (
                CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[question] ) ),
                "@question", [question],
                "@score", [score]
            )
        ),
        [@score]
    )