Forum Discussion

BuckedUpJJP's avatar
BuckedUpJJP
New Member
1 year ago
Solved

Total Row Miscalculation

I have created the following measure for my dataset and it is correctly calculating each month properly but my total row isn't displaying the correct total. How can I adjust my measure to calculate t...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Thanks for the attention to the problem from Ritaf1983.

     

    Hi BuckedUpJJP ,

     

    I don't have access to the link you provided, so I created simple test data:

     

    The reason the total row is incorrect is that it adds up all the values and divides by 31, whereas there are not actually 31 days in every month. At this point we can create another measure:

     

    Final Budget = SUMX(VALUES('dim_dates'[Month]),[Daily Budget])

     

     

    Result:

     

    Best Regards,
    Zhu

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.