Skip to content
Advertisement

Is there any way i can populate entity based on months but excluding the first month each loops?

i have a set of data sample like this

is there any way i can populate that sample to be like this?

this work like union all but excluding the first month each loops

Advertisement

Answer

Below is for BigQuery Standard SQL

with output

In case if pos field is not explicitly available – you can derive it as in below example

with the same final output

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement