Forum Discussion
tcaselli
7 years agoNew Member
Problem with filtered measures and sums
Hi, I'm having a problem crating a measure that works for my dataset. Here's what it looks like: Date #Rejected #Produced #RejectReason 8/1 4 7 ...
- 7 years ago
Hi tcaselli
If i understand you correctly, you could create a measure as below
reject_reason_date = CALCULATE(SUM('Table'[Rejected]),ALLEXCEPT('Table','Table'[RejectReason],'Table'[Date])) produced_date = CALCULATE(SUM('Table'[Produced]),ALLEXCEPT('Table','Table'[Date])) percentage = [reject_reason_date]/[produced_date]Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-juanli-msft
Community Support
7 years agoHi tcaselli
If i understand you correctly, you could create a measure as below
reject_reason_date = CALCULATE(SUM('Table'[Rejected]),ALLEXCEPT('Table','Table'[RejectReason],'Table'[Date]))
produced_date = CALCULATE(SUM('Table'[Produced]),ALLEXCEPT('Table','Table'[Date]))
percentage = [reject_reason_date]/[produced_date]
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.