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...
Zubair_Muhammad
Community Champion
8 years ago
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] )
)
)jttdp
8 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!