Forum Discussion

SUMESHKUMAR22's avatar
SUMESHKUMAR22
Helper IV
2 years ago
Solved

Matrix Column Grand Total fix

Hi Community, Need a urgent help! In the below highlighted estimated spend horizontally the Grand Total Estimated Hrs is coming average but it should be Sum (e.g. For account management,  inst...
  • AlexisOlson's avatar
    AlexisOlson
    2 years ago

    Well, there's your problem. It's defined as the sum of averages over departments.

     

    If you want it to sum over whatever dimension you're using on columns (phase?), then that needs to be part of the definition. For example,

    VAR esthrs =
        SUMX (
            SUMMARIZE (
                INTERNAL__PROJECT_MANAGEMENT__BENCHMARK,
                INTERNAL__PROJECT_MANAGEMENT__BENCHMARK[DEPARTMENT_NAME],
                INTERNAL__PROJECT_MANAGEMENT__BENCHMARK[PROJECT_PHASE], /* <-- New line here */
                "AvgEst", AVERAGE ( INTERNAL__PROJECT_MANAGEMENT__BENCHMARK[ESTIMATED_HOURS] )
            ),
            [AvgEst]
        )