Goran Jakimovski
09/11/2025, 9:31 AMkapa.ai
09/11/2025, 9:32 AM{
"gdc": {
"product": "dashboard",
"event": {
"name": "setFilterContext",
"data": {
"filters": [
{
"positiveAttributeFilter": {
"displayForm": {
"identifier": "your_label_identifier"
},
"in": [
"Your Value"
],
"textFilter": true
}
},
{
"relativeDateFilter": {
"dataSet": {
"identifier": "your_date_dataset"
},
"granularity": "GDC.time.date",
"from": -6,
"to": 0
}
}
]
}
}
}
} - Multiple date filters limitation - If the dashboard has multiple date filters, setFilterContext via postMessage currently cannot change the filter context. Test with only one date filter to confirm. [[Embed dashboards](https://www.gooddata.com/docs/cloud/embed-visualizations/iframes/embed-dashboard-via-iframe/#commands)] - Quick sanity checks - Ensure you’re not passing type: "dataset" in displayForm; just use the label identifier. [[Embed dashboards](https://www.gooddata.com/docs/cloud/embed-visualizations/iframes/embed-dashboard-via-iframe/#commands)] - As a control, try a negativeAttributeFilter with notIn: [] (acts as “ALL”) to verify the command path still works. [[Embed dashboards](https://www.gooddata.com/docs/cloud/embed-visualizations/iframes/embed-dashboard-via-iframe/#commands)] - If values appear in rows but filters fail - It can be a cache/state issue with label elements; try reloading cached data and test again. [[Slack cache note](https://gooddataconnect.slack.com/archives/C04S1MSLEAW/p1701279846296009?thread_ts=1701279846.296009&cid=C04S1MSLEAW)] If you’ve already set textFilter: true and have only one date filter and it still doesn’t execute, please share a sample payload and a traceId—we can help pinpoint further.Joseph Heun
09/12/2025, 9:26 AMGoran Jakimovski
09/12/2025, 9:38 AMJoseph Heun
09/12/2025, 9:41 AMGoran Jakimovski
09/12/2025, 11:20 AM