name place first_time money_spent city
Anna Florida TRUE 44 Tampa
Anna Florida FALSE 22 Fort
Anna Florida FALSE 289 Bay
Anna Florida FALSE 0 Miami
Ryan Mexico FALSE 0 Cancun
Ryan Mexico TRUE 122 Tijuana
Ryan Mexico FALSE 0 Puebla
hi, so I am curious for within each group(name, place) how many cities have a non-zero, positive value value for money_spent where first-time == FALSE
so for group "Anna/Florida", the result is 2. (Fort, 22, and Bay 289, but Miami has 0)
so for "Ryan/Mexico", the result is 0, since Cancun, 0 and Puebla, 0.
hi techno that is not what I am looking for. I am trying to do a group by and summarize to get number of "city" that have non-zero positive value in money_spent, not including any row that is has "TRUE" in the value of first_time.thank u so much