Forum Discussion
Summarizing, adjusting, and filtering data
- Anonymous2 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 HeIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hello,
I very much appreciate the effort, but it is just returning the exact amount of money in each data entry (aka each row). I'm worried I was not specific enough- let me clarify. I need to create a quote on quote 'bin' showing "Money" totals for each combination of "PersonID" and "Description". For example it would add up all entries listed as Person ID 1 and Description Group1 (of which there could be dozens), then add up the totals for all entries listed as Person ID 1 and Description Group 2, then Person ID 2 and Description Group 1, and so on. Then, for each of those bins, it would adjust the total value based off of the description group, for example Person ID 5 and Description Group 8 would subtract 8 Money because it is affiliated with Description group 8.
Excluding the state MA can be ignored for the moment, I can add that in later. I believe your code to adjust the values would also work, and again thank you.
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