Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

load Amount from resident for min(Date)

From a resident Donor Transaction table, I'm building a stats table (e.g. first gift date, last gift date, largest gift amount, etc.) by Donor. For the first gift date for each Donor, I'd like to also get the Amount associated with the first gift date. Without joining the two tables, is there a way to sum Amount for the min(Date)?

Thanks,

Kevin

3 Replies
vgutkovsky
Master II
Master II

Kevin,

You can do it this way: firstsortedvalue(amount,date). Would that work or do you have multiple amounts per date?

Regards,

Not applicable
Author

Will most likely have multiple amounts per date in the case where the gift was split across multiple Designations.

Kevin

vgutkovsky
Master II
Master II

I think it depends on what dimensions you have in your chart. If you display the first gift date, then it can probably be a simple sum. Otherwise, you could do something like the following:


firstsortedvalue(
aggr(sum(amount),donor,date)
,date
)


Regards,