Steve Fox
09/26/2023, 7:25 PMSteve Fox
09/26/2023, 7:26 PM"traceId": "cb646bb151a6479a4bc64d36951a3be2"
Michal Hauzírek
09/26/2023, 7:34 PMSteve Fox
09/26/2023, 7:36 PMSteve Fox
09/26/2023, 7:36 PMSteve Fox
09/26/2023, 7:36 PMSteve Fox
09/26/2023, 7:36 PMSteve Fox
09/26/2023, 7:37 PMSteve Fox
09/26/2023, 7:37 PMSteve Fox
09/26/2023, 7:37 PMMichal Hauzírek
09/26/2023, 7:44 PMBY {dataset}
to the metric where you are calculating the date diff
SELECT AVG(
(SELECT
DATETIME_DIFF( {DateOfBirth - Year{label/DateOfBirth.year}, THIS(YEAR) )
BY {dataset/your_dataset}
)
)
I agree that this is not very intuitive and this case was already reported to GoodData product team to improve how it works or improve the documentation.Steve Fox
09/26/2023, 7:49 PMSteve Fox
09/26/2023, 7:50 PM