I have a big query result which shows the weight of each person over many weeks, and I want to find the names of the people whose weight always increased over the weeks. Below is the a sample data.
name week weight
tom 2020W10 76
tom 2020W09 75
tom 2020W08 74
jane 2020W10 65
jane 2020W09 65
jane 2020W08 64
So in the case of the above sample data, I would only want to see Tom in my result since his weight always increased over the dates. In my original data set, I have 10,000 names and more than 10 weeks, so it is really hard do to do with a more brute force approach. I was thinking of using the the regression function in Big query, but then I would have to do as many regressions as I have unique names. I would really appreciate any help. Thanks!