Forum Discussion
How to Sum Distinct Based on another Column Value
- 6 years ago
User5231 try this measure:
Yield Sum = CALCULATE ( SUM ( TableTest[Yield] ), FILTER ( ALLEXCEPT ( TableTest, TableTest[Area], TableTest[Order] ), TableTest[Operation] = MAX ( TableTest[Operation] ) ) )I would π Kudos π if my solution helped. π If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
User5231 try this measure:
Yield Sum =
CALCULATE (
SUM ( TableTest[Yield] ),
FILTER (
ALLEXCEPT ( TableTest, TableTest[Area], TableTest[Order] ),
TableTest[Operation] = MAX ( TableTest[Operation] )
)
)
I would π Kudos π if my solution helped. π If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
- User52316 years agoHelper II
I will try this and let you know. Also, would it be possible to make a calculated column that did the same thing? Like gave you an indicator for the last operation for each order out of each area? That would be more ideal because I could turn on the Y or N indicator with a filter.
- User52316 years agoHelper II
Anyone know a way to do the column indicator request? Would really be helpful.
Thanks again.