Forum Discussion
WLFRD
Helper III
4 years agoSum quantity per partcode
Hello, I'm struggling with the sum of quantities per partnumber. Our machines have framenumbers and those machines are build with parts. I would like to sum the parts in an overview. This is the...
- 4 years ago
oh okay WLFRD , then try this:-
Column = CALCULATE ( SUM ( 'ProductionPartAll'[Quantity] ), FILTER ( 'ProductionPartAll', 'ProductionPartAll'[PartNumber] = EARLIER ( 'ProductionPartAll'[PartNumber] ) ) )
WLFRD
Helper III
4 years agoThanks! But I would like to have a calculated column. I need this total column for another calculation.
Samarth_18
Community Champion
4 years agooh okay WLFRD , then try this:-
Column =
CALCULATE (
SUM ( 'ProductionPartAll'[Quantity] ),
FILTER (
'ProductionPartAll',
'ProductionPartAll'[PartNumber] = EARLIER ( 'ProductionPartAll'[PartNumber] )
)
)- WLFRD4 years ago
Helper III
Is it possible to make the calculation dynamic? I mean, based on how we filter the data, it has to calculate the sum per PartNumber.