I would like to get the count of users for last week and this week in one table, but I am not familiar with how to do this.
All I have so far is below, using specific dates to extract the distinct count each week. Can someone show me how to do this, please?
Select
COUNT(distinct f.user_key)
FROM
`Analytics.warehouse.Fact_view` f
WHERE f.date BETWEEN '2023-11-06' AND '2023-11-12'
To have count of current week's data you can do as following:
To get count of last week and this week data you can use below query: