Forum Discussion

saud968's avatar
saud968
Icon for Memorable Member rankMemorable Member
2 years ago
Solved

Incorrect average

AGE 70 27 25 9 4 4 2 9 7 2 0 3 2 0 0 13 0 3 0 6 0 1 6 4 15 4 6 13 5 3 11 3 4 2 0 0 1 2 2 1 2 5 0 1 4 5 4 4 3 3 3 4 1 2 1 2 1 7 1 0 1 8 0 5 0 7 6 4 1 3 1 In Excel the average for this is 5.04, howeve...
  • saud968's avatar
    saud968
    2 years ago

    Thank you for reviewing it. I was able to get the correct average with the below dax

    TTR2 =
    VAR AvgAge1 =
        AVERAGEX (
            FILTER (
                'support__cw_ops_manage_case_merge_temp',
                'support__cw_ops_manage_case_merge_temp'[ClosedCaseFlag] = TRUE ()
            ),
            'support__cw_ops_manage_case_merge_temp'[AGE]
        )
    VAR AvgAge2 =
        AVERAGEX (
            FILTER (
                'SUPPORT__CW_OPS_VOLUME_FRESHDESK_FORTIFY_SPS',
                'SUPPORT__CW_OPS_VOLUME_FRESHDESK_FORTIFY_SPS'[ClosedCaseFlag] = TRUE ()
            ),
            'SUPPORT__CW_OPS_VOLUME_FRESHDESK_FORTIFY_SPS'[AGE_IN_DAY]
        )
    RETURN
        AvgAge1 + AvgAge2