Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Incorrect Sum of Rows

Hi All,    I have a table like below. Now when i use the inbuilt summarisation function for the column, i was getting a weird Total. So i created a measure to just sum up headcount and i'm getting ...
  • v-henryk-mstf's avatar
    4 years ago

    Hi  Anonymous ,

     

    According to your description, the problem may be caused by the wrong statistics of the formula. If you want the value of Fiscal Month + Fiscal Date, where the Fiscal Month field counts the number of individuals, then you can refer to a formula similar to the following.

    Column =
    COUNTROWS ( 'Table' )
        + CALCULATE (
            SUM ( 'Table'[Headcount] ),
            ALLEXCEPT ( 'Table', 'Table'[Fiscal Date].[Month] )
        )

    If the problem is still not resolved, can you provide the relevant test data (remove sensitive information) to facilitate me to answer for you as soon as possible. Looking forward to your feedback.


    Best Regards,
    Henry


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