cancel
Showing results for 
Search instead for 
Did you mean: 

Replicating DIFFPASTWEEK logic in BigQuery

amelia
10 - ETL
10 - ETL

My current view has a date column and a column with metric 1 (as shown in screenshot). In the Sisense widget front-end, I aggregate the dates as weeks. This sums up metric 1 for all the dates in a week.

I then use the DIFFPASTWEEK function to create a metric that shows the difference between each week. However, I do not understand the DIFFPASTWEEK function well enough and want to recreate this logic in BigQuery. Can anyone please advise on this? Thanks!

 

 

0 REPLIES 0