Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Dynamic grand total problem depending on switch selection

Hello community, I'm unsuccessfully trying to show the dynamic Grand Total as the sum of the columns depending on whether or not I select the "Scenario" filter to show more measures. If I select on...
  • tamerj1's avatar
    3 years ago

    Hi Anonymous 

    please try

    Sum_Scenario_Year =
    SUMX (
    VALUES ( 'MAIN BASELINE'[MAIN BASELINE] ),
    SWITCH (
    'MAIN BASELINE'[MAIN BASELINE],
    "ACT CY", [ACT CY],
    "ACT -1", [ACT -1],
    "PCL CY", [PCL CY]
    )
    )