Jamie Lawrie
06/11/2024, 1:58 AMSELECT MIN({activity_date})
But even though the metric builder allows the syntax I get errors.
The fact that GoodData’s cloud interface doesn’t have a format option to allow a metric to be a date I’m worrying something really obvious is being missed?
More details in threadJamie Lawrie
06/11/2024, 2:00 AM{
"title": "Bad Request",
"status": 400,
"detail": "A result cache error has occurred during the calculation of the result",
"resultId": "92368acdbdcc702a695bf94ea8d2f816c28d9a3c",
"reason": "Fact 'fact/activity_date_attend/storypark-staging' must have only numeric data type",
"traceId": "8bdaf9d08739a8d0497eca1fc08abc93"
}
error when I want to use the metric in a visual
Seems like it is telling me it doesn’t like dates?Jamie Lawrie
06/11/2024, 2:02 AMJamie Lawrie
06/11/2024, 2:05 AMJamie Lawrie
06/11/2024, 2:06 AMSELECT MIN({label/ACTIVITY_DATE.day})
how do I ensure it only applies in the relevant context of when it exists on just one of the tables and not across all datesJamie Lawrie
06/11/2024, 2:13 AMSELECT MIN({label/ACTIVITY_DATE.day}) USING {dataset/ROUTINES_ATTENDANCE}
and got
"title": "Bad Request",
"status": 400,
"detail": "A result cache error has occurred during the calculation of the result",
"resultId": "59c4900a8a16859d8091b822cb3efa4b88f3e431",
"reason": "Top level metric return type=date not allowed",
"traceId": "9b5f42b3852b725a51ae664666b6c481"
Jamie Lawrie
06/11/2024, 2:14 AMMoises Morales
06/11/2024, 7:31 AMSELECT MIN({fact/opportunity_amount})
, but it seems that there may be some non-numerical characters in this fact, hence the error. Could you check the column in your database and make sure that it contains only numerical values? If so, please place your LDM in edit mode and refresh the database tables on the left side panel and re-add the dataset to the LDM, this will force any previous missloaded values to have the correct datatype. Please also watch for any breaking changes this may introduce to the workspace, for example, some dashboards and metrics may get broken if the dataset connections or definitions are different.Jamie Lawrie
06/11/2024, 8:34 PM