Is there any way to remove the date filter from a ...
# gooddata-platform
m
Is there any way to remove the date filter from a dashboard? Some of the dashboards I'm building have no date data, so the filter doesn't make sense. It seems to be the one filter I can't remove.
m
Ah, perfect. Sorry I didn't find this thread!
Thanks @Martin Burian!
m
No problem. Anytime.
m
image.png
No matter where I put the code, I seem to get an error.
m
let me try
image.png
This works for me ^
m
Ok, isn't that exactly the same place I put mine?
m
Seems so 🙂 ... hmm what error you get?
m
image.png
m
Isnt there already the dateFilterConfig already in the body?
m
No
{ "filterContext" : { "content" : { "filters" : [ { "attributeFilter" : { "attributeElements" : [ "/gdc/md/pl8qc6ckd97rbjqopg66mo13umf6k7dm/obj/798/elements?id=5727" ], "displayForm" : "/gdc/md/pl8qc6ckd97rbjqopg66mo13umf6k7dm/obj/799", "filterElementsBy" : [], "localIdentifier" : "4a1a3d23f8a14fa0b1c4d477db779e63", "negativeSelection" : false } }, { "attributeFilter" : { "attributeElements" : [], "displayForm" : "/gdc/md/pl8qc6ckd97rbjqopg66mo13umf6k7dm/obj/1082", "filterElementsBy" : [], "localIdentifier" : "dafbf247fd8c43b888117e735b6b0ee8", "negativeSelection" : true } }, { "attributeFilter" : { "attributeElements" : [], "displayForm" : "/gdc/md/pl8qc6ckd97rbjqopg66mo13umf6k7dm/obj/1084", "filterElementsBy" : [], "localIdentifier" : "1bdaa47e8ab948f4ad4824f55a74176b", "negativeSelection" : true } }, { "attributeFilter" : { "attributeElements" : [], "displayForm" : "/gdc/md/pl8qc6ckd97rbjqopg66mo13umf6k7dm/obj/1088", "filterElementsBy" : [], "localIdentifier" : "a89b8537052347fd94f2a78fa4a3fdc0", "negativeSelection" : true } }, { "attributeFilter" : { "attributeElements" : [], "displayForm" : "/gdc/md/pl8qc6ckd97rbjqopg66mo13umf6k7dm/obj/1092", "filterElementsBy" : [], "localIdentifier" : "fdef9660ff5c44578e436b8358b10381", "negativeSelection" : true } } ] }, "meta" : { "author" : "/gdc/account/profile/908bcdbf819f3734f0c78a27e7f5ca5f", "category" : "filterContext", "contributor" : "/gdc/account/profile/908bcdbf819f3734f0c78a27e7f5ca5f", "created" : "2022-04-17 162058", "deprecated" : "0", "identifier" : "aapqKKH3M2MI", "isProduction" : 1, "summary" : "", "tags" : "", "title" : "filterContext", "updated" : "2022-04-18 172749", "uri" : "/gdc/md/pl8qc6ckd97rbjqopg66mo13umf6k7dm/obj/1473" } } }
^ this is the code before I tried to remove the date filter ^
m
This code is not dashboard.
Go to
Copy code
/gdc/md/PID/query/analyticaldashboard
Choose the dashboard and apply the change
The right object category is:
Copy code
"category" : "analyticalDashboard",
you have
Copy code
"category" : "filterContext",
it is probably the actual filter, you need to update the dashboard object not the filter.
m
Ah, might have clicked one too many times. Ok, I figured it out now
thanks
👍 1