Output set elements - last ticket purchase date and amount, last contribution date and amount

Trying to create an output set that would include last date and amount for both tickets and contributions. I found the 'Most Recent Cont Date' element but can't find one for amount of most recent contribution, or for most recent ticket purchase date and amounts.  Assuming I'm not missing something and there's no standard output element for those data points, does anyone have a recipe for building those output set elements?  I'm sure there's been a forum answer on this before but struggling to find a recent post on the topic in the depths of the archives.

Parents Reply
  • Hi Erin!

    I believe ticket amount is also in VS_ELEMENTS_TICKET_HISTORY, so in theory you could use the same pattern as the other columns in that custom view and just add it on to the end when creating the view?

    (select  top 1 f.tck_amt from VS_ELEMENTS_TICKET_HISTORY f
    JOIN VRS_SEASON s5 (NOLOCK) on f.season = s5.id where f.perf_dt =  max(a.perf_dt) and s5.type not in (0) and f.customer_no = a.customer_no) as 'tck_amt'
Children