taek_onvi
08-26-2022Cloud Apps
Week to date as JAQL query
Hi,
I am trying to create a jaql query that replicates what I can filter on the dashboard using the UI - filtering a date range to 'This week and last week'. But in the jaql editor, it looks like 'weeks' are not accepted as a date level, so I was wondering the best way to do this.
I have currently tried:
{
"datasource": "reporting_data",
"metadata": [
{
"dim": "[dim_calendar.date]",
"datatype": "datetime",
"level": "weeks",
"filter": {
"last": {
"count": 2,
"offset": 0
}
}
}
]
}