How to count number of day grupped by Year-month, district, department where first transaction time is >8:30
Hello,
Could You help me with how to script aggr function?
I try to count amount of day in each month and in each district and department where first transaction in day started after 8:30 (where min (Time_transaction)>8:30) .
What I need in result:
District|Department|Year-Month|Count(Day)|Count(day where min (Time_transaction)>8:30)|Count(Time_transaction)