I have a Contributions table that has columns: AssetGroup, GiftAmount, FundID, and ID (gifts)
I need to find the sum of the first ID (gift) that is over $100 to a fund.
In our business the first ID (gift) to a FundID is usually a place holder and the following ID (gift) is what gets the FundID going. Our objective is to find out what the sum of that first (real) gift is.
Would it be possible to set the $100 cutoff as a slicer so that the users could change the parameter? If not, it's not pertinent.
Please let me know if I need to elaborate or give another example
Solved! Go to Solution.
@aro try following measures, update column and table name as per your model.
Add what-if parameter and then it will be dynamic as it will give first fund id where amount is greater than parameter value.
Gift Amount = SUM( Table[Gift Amount] ) First Id = CALCULATE( MIN( Table[First Id], TOPN(1, FILTER( Table, [Gift Amount] > [Parameter Value] ), [Gift Amount], ASC ) )
So I created a column to calculate the sum of Gift Amount.
How are you calling "First Id" within the "First Id" column creation? It hasn't been created yet...
"First Id = CALCULATE(MIN(Table[First Id..."
Just to reiterate, I need to find the first Gift Amount > $100 for each FundID