Forum Discussion

medaxing's avatar
medaxing
Frequent Visitor
4 years ago
Solved

Grand Totals Rows and Column Not Matching

Hi Guys,   Greetings!   Need your help. Below is the example of the data. Unfortunately unable to figure out why the grand totals are not matching.   Name 2022-01 2022-02 2022-03 ...
  • v-kkf-msft's avatar
    4 years ago

    Hi medaxing ,

     

    Please try the following formula:

     

    Measure = 
    var total = 
        sumx (
            SUMMARIZE ( V, 'Calendar'[Year and Month], V[V Code], "base", [measure_base] ),
            [base]
        )
    return
        if (
            hasonefilter ( 'Calendar'[Year and Month] ) && HASONEFILTER ( 'V'[V Code] ) ,
            if ( [measure_base] < 1, 0, [measure_base] ),
            total
        )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.