Forum Discussion
jttdp
8 years agoFrequent Visitor
Calculate sums filtered to current row value
Dear community, I have been struggling to create a new calculated column that involves sums filtered to the values of each row. Below is a small example of my challenge. Each row represents a...
BraneyBI
Kudo Commander
8 years agojttdp- is there a reason you want this as a Calculated column and not a measure? If a measure works, then MarkS solution will work for you.
- Zubair_Muhammad8 years ago
Community Champion
This might work both as a Calculated Column and as a MEASURE
= DIVIDE ( CALCULATE ( SUM ( Table1[Amount] ), ALLEXCEPT ( Table1, Table1[Contributor], Table1[Recipient], Table1[Year] ) ), CALCULATE ( SUM ( Table1[Amount] ), ALLEXCEPT ( Table1, Table1[Recipient], Table1[Year] ) ) )- jttdp8 years agoFrequent Visitor
MarkS, BraneyBI and Zubair_Muhammad, thank you all so much for your prompt responses and advice - they work well as measures!
I tried taking it a step further by referring to another table's set of values, unfortunately it will only work for me if all the references are found on the same table... but nonetheless this has been very helpful! Happy Tuesday!