Query Element Set Up for Total Ticket History - Number of Tickets

I'm trying to get an Output Set to spit out the total number of tickets a patron has ever bought, I know I have to set it up TR_Query_Element but I've got no idea what to put in the Data Select field or other necessary fields. Any help would be greatly appreciated!

Parents
  • ,

    Assuming you just want, straight up and down, a total number of all the "seats" appearing in a patron's account on their "ticket history" tab, this one should not be too bad.  Basically, you should just be able to copy the (should be standard) element that is called "Tickets - Total Amount" in the "Ticketing - Ticket History" grouping.  Then, in your newly copied row, where it says "sum(tck_amt)", change that to "sum(num_seats)".

    You will still want to test it out before relying on the data to make sure it is exactly what you want, but it should work reasonably well.  It should even still work with output set filters, too, but I would have to test that out as well to be sure.

    Hope that helps!

    John A. Moskal II

Reply
  • ,

    Assuming you just want, straight up and down, a total number of all the "seats" appearing in a patron's account on their "ticket history" tab, this one should not be too bad.  Basically, you should just be able to copy the (should be standard) element that is called "Tickets - Total Amount" in the "Ticketing - Ticket History" grouping.  Then, in your newly copied row, where it says "sum(tck_amt)", change that to "sum(num_seats)".

    You will still want to test it out before relying on the data to make sure it is exactly what you want, but it should work reasonably well.  It should even still work with output set filters, too, but I would have to test that out as well to be sure.

    Hope that helps!

    John A. Moskal II

Children