Forum Discussion

Flash9883's avatar
Flash9883
New Member
1 year ago
Solved

Data Aggregation issue

Good afternoon,   I have a data set that row calculations are correct but column total is not. How can i fix the aggregation.   The underlined 22 is suppose to be a sum. The issues that cou...
  • Fowmy's avatar
    1 year ago

    Flash9883 

    Based on the limited information you have shared here, I guess you need to include the employee number in the logic as each row belongs to an employee and you need to het the aggregate in the same manner, try this, replace the employee number in the with your correct column:

    SUMX (
        SUMMARIZE (
            FILTER ( TRC_Table, TRC_Table[TRC] IN { "REG", "WRKHM" } ),
            TRC_Table[EmployeeNo], 
            TRC_Table[Date],
            "UniqueCount", DISTINCTCOUNT ( TRC_Table[Date] )
        ),
        [UniqueCount]
    )
    



  • V-yubandi-msft's avatar
    1 year ago

    Hi Flash9883 ,

    Please consider marking it as the Accepted Solution if it helped resolve your issue. It will be helpful for others in the community who might be facing a similar problem.

     

    Thank you for your understanding.