Hi everyone, noticed an issue where Hour and Minut...
# gooddata-cloud
m
Hi everyone, noticed an issue where Hour and Minute granularity are disabled in the LDM and this applies to building reports in the Analyze page but these granularities don't seem to apply to if Date is used as a filter on a dashboard. The dashboard filter still shows hours and minutes selections even when disabled, Analyze will hide them if used as a filter Anyone know how to fix this? Users are selecting time values and getting confused when the reports dont show anything
k
You’re right: disabling Hour/Minute in the LDM affects Analyze, but dashboard date filters are controlled separately. To hide Hour and Minute on dashboards, you need to configure the
dateFilterConfig
setting (org- or workspace-level). Use a payload like this in your
dateFilterConfig
content:
Copy code
{
  "config": {
    "relativeForm": {
      "granularities": [
        "GDC.time.date",
        "GDC.time.week_us",
        "GDC.time.month",
        "GDC.time.quarter",
        "GDC.time.year"
      ],
      "localIdentifier": "relativeForm",
      "name": "relativeForm",
      "visible": true
    },
    "availableGranularities": [
      "GDC.time.date",
      "GDC.time.week_us",
      "GDC.time.month",
      "GDC.time.quarter",
      "GDC.time.year"
    ],
    "hideGranularities": [
      "GDC.time.hour",
      "GDC.time.minute"
    ]
  }
}
Create/update this setting via: • Organization:
POST /api/v1/entities/organizationSettings
• Workspace:
POST /api/v1/entities/workspaces/{workspaceId}/workspaceSettings
with
id: "dateFilterConfig"
and
attributes.type: "DATE_FILTER_CONFIG"
. [Date filter docs; API props] Key points: • LDM granularities control what’s available in Analyze and for metrics. [Missing granularity] • Dashboard date filter UI is driven by
dateFilterConfig
(including
relativeForm.granularities
,
availableGranularities
, and
hideGranularities
), so you must restrict/remove Hour/Minute there as well. [Community thread] 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups. 👀 Our Support team monitors all messages and will jump in if needed.
m
Why is this only available in the API, dashboards would be where Date filtering is done the most
@kapa.ai Why is this only available in the API, dashboards would be where Date filtering is done the most
k
The knowledge sources do not explain why this configuration is currently exposed only via the API and not directly in the dashboard UI, so I can’t give an official rationale. What is documented is: • Customizing dashboard date-filter granularities (including hiding hour/minute) is done via the
dateFilterConfig
metadata object, created/updated through the organization/workspace settings API. [Date filter docs; Release notes] • LDM controls which granularities exist for analysis, but the dashboard date filter UI is a separate layer, hence the need for
dateFilterConfig
. [Missing date granularity; Community thread] If you’d like this to be configurable directly in the dashboard UI, the best next step is to submit it as a product enhancement request through GoodData support or your account representative; the docs don’t mention any UI-based configuration for this today. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups. 👀 Our Support team monitors all messages and will jump in if needed.
y
Hello Mitch, As stated in our documentation here ,Customizing dashboard date-filter granularities (including hiding hour/minute) is done via the
dateFilterConfig
metadata object, created/updated through the organization/workspace settings API. I will submit this as feedback to our product team for consideration. We are unable to share an ETA at the moment as our engineers are focused on higher priority tasks. You can find information on the newest updates here: https://www.gooddata.ai/docs/cloud/whats-new-cloud/