Extract the last x records updated each days

Hi

Each day a google sheet datasource is updated with the data of the day

From this table I would like to update my report only with the last 365 records from this table

Thx 

Solved Solved
0 4 372
1 ACCEPTED SOLUTION

Or easier with this formula in google sheets : =QUERY(DATA;"SELECT A, L order by A desc LIMIT 365")

View solution in original post

4 REPLIES 4

@PACAP 
Doable but you need to push data into BigQuery and use some smart INSERT or MERGE INTO with WHERE clause appending or replacing only data you nneed.

Arkady Zagdan - Bigglo

Hi @ArkadyZagdan

Doable from the free or sandbox versio, ? Could u tell me a little bit more On How ?

Thx

 

Or easier with this formula in google sheets : =QUERY(DATA;"SELECT A, L order by A desc LIMIT 365")

@PACAP If that field is insert time or an progressing ID then yeah Query would do the work.