Need help on calculated fields

#QuestionForGroup
Hello everybody, i need help.

I have 3 columns of data:

-days date
-the quantity planted
-the quantity harvested
but
-planting takes place every year from July 1 to June 30 of the following year and so on.
-the harvest takes place every year from January 1 to December 31 of the following year and so on. the harvest is therefore delayed by 6 months.

I would like to :
-create a calculated field integrating these date ranges for each of the 2 metrics.
-create a metric that calculates the harvest/planting ratio taking into account the 6-month gap.

Thank you

0 1 144
1 REPLY 1

@Joseph_D_Andria 
1. Push data into BigQuery Table

https://cloud.google.com/bigquery/docs/external-data-drive

2. Use window functions :

https://cloud.google.com/bigquery/docs/reference/standard-sql/window-function-calls

3. Connect to looker studio and you are good to go.

Regards
Arkady Zagdan - Bigglo