Tomas Lima
11/08/2024, 7:07 PMMauricio Cabezas
11/08/2024, 7:58 PMSELECT DATETIME_DIFF(this(MONTH),this(day),DAY)
If you’re interested in getting the specific day number, you can try this one instead:
SELECT DATETIME_DIFF(this(MONTH),this(day,1),DAY)
Also, it would be great to know if your question is related to a specific date attribute or if you’re just looking for the day number.
Best regards,
Mauricio Cabezas
Customer Support Analyst
GoodData | support@gooddata.com for you.Mauricio Cabezas
11/11/2024, 12:40 PMTomas Lima
11/11/2024, 12:53 PMMauricio Cabezas
11/11/2024, 1:31 PMDATETIME_DIFF
, you can refer to 'Example 2' in the documentation. Here’s the query you can use:
SELECT AVG(SELECT DATETIME_DIFF({label/DateA.day}, THIS(DAY)) BY {dataset/taba})
Regarding the original question, this:
SELECT DATETIME_DIFF(this(MONTH),this(day),DAY)
still is not working for you?
If you need any further assistance, feel free to reach out.
Have a great day!Mauricio Cabezas
11/13/2024, 8:05 AM