Hans Cornette
12/18/2023, 4:14 PMMichael Ullock
12/18/2023, 6:21 PMSELECT <Your-Metric> WHERE Year (Date) = THIS AND Date (Date) <= This
For the last years quarter to the same date:
SELECT <Your-Metric> WHERE Year (Date) = THIS-1 AND Date (Date) <= This -365
More details on the “THIS” macro used in the metrics above can be found here:
https://help.gooddata.com/doc/growth/en/dashboards-and-insights/maql-analytical-query[…]e-where-clause/referencing-floating-time-periods/this-macro/
In the part where I have added “`<Your-Metric>`” you will simply insert your metric there where you’re calculating the totals.Michal Hauzírek
12/18/2023, 7:35 PMDay of Year (Date)
date attribute which is assigns to each day in any year value between D1 and D366. It is available for any date dimension and also works with THIS macro:
SELECT <Your-Metric> WHERE Year (Date) = THIS AND Day if Year (Date) <= This
and
SELECT <Your-Metric> WHERE Year (Date) = THIS-1 AND Day if Year (Date) <= This
Hans Cornette
12/18/2023, 7:41 PMMichael Ullock
12/18/2023, 8:27 PMHans Cornette
12/18/2023, 8:28 PMMichael Ullock
12/19/2023, 3:24 PMHans Cornette
12/19/2023, 8:05 PMIvana Gasparekova
12/22/2023, 5:59 PMTomas Muchka
12/22/2023, 8:40 PMHans Cornette
01/12/2024, 11:55 AMHans Cornette
02/13/2024, 12:50 PMTomas Muchka
02/13/2024, 12:57 PMHans Cornette
02/14/2024, 1:10 PM