File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
services/libs/tinybird/pipes Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2121 CASE WHEN organizationId != '' THEN organizationId ELSE NULL END
2222 ) AS activeOrganizationsLast365Days
2323 FROM activityRelations_deduplicated_cleaned_ds
24- WHERE timestamp > = now() - INTERVAL 365 DAY
24+ WHERE timestamp < = now()
2525 GROUP BY segmentId
2626
2727NODE project_insights_copy_previous_365_days_metrics
3838 CASE WHEN organizationId != '' THEN organizationId ELSE NULL END
3939 ) AS activeOrganizationsPrevious365Days
4040 FROM activityRelations_deduplicated_cleaned_ds
41- WHERE timestamp >= now() - INTERVAL 730 DAY AND timestamp < now() - INTERVAL 365 DAY
41+ WHERE timestamp < now() - INTERVAL 365 DAY
4242 GROUP BY segmentId
4343
4444NODE project_insights_copy_results
You can’t perform that action at this time.
0 commit comments