aggregate QUERY - 3 month average per person for every month
问题 Suppose I have view of data in bigquery Person | Amount | yearMonth --------------------------- AA | 100 | 201701 AA | 200 | 201702 AA | 300 | 201703 AA | 70 | 201704 AB | 10 | 201701 AB | 50 | 201702 AB | 60 | 201703 AB | 70 | 201704 AC | 70 | 201701 AC | 80 | 201702 AC | 30 | 201703 AC | 10 | 201704 Now, I need to get the average of this for the last 3 months for every person every month Expected Results: Person | Amount | yearMonth --------------------------- AA | 200 | 201703(avg of