Forum Discussion

Alex1928361's avatar
Alex1928361
New Member
2 years ago
Solved

Summarizing, adjusting, and filtering data

Hi everyone, I am somewhat new to Power BI, and this is driving me crazy. Any help would be greatly appreciated. I need to summarize "Money", grouping by both "PersonID" and "Description" while also ...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Alex1928361 ,

    Thanks for the reply, create a MEASUREMENT for calculating the group ordinal number on top of the previous one, and then do the calculation on the final result

    Group number = RIGHT(SELECTEDVALUE('Table'[Description]),1)
    TotalAdjusted = 
    IF(
        [Total by group] - [Group number] < 0,
        0,
        [Total by group] - [Group number]
    )

    Final output

    Best regards,
    Albert He

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