Hi Team, I am not getting "Today" and "Yesterday" ...
# gooddata-ui
b
Hi Team, I am not getting "Today" and "Yesterday" options in DateFilter in my UI but those are available on Gooddata Portal. is there anyway to enable those? Please refer below screenshots for my UI and Gooddata Portal:
m
Hi Bhupesh, I hope you are doing well. I would like to learn more about how you are integrating GoodData into your application. Are you using embedding, or are you utilizing a UI framework like React? Could you please provide more details, including the specific versions you are using? Are you using GD CN or Cloud? Additionally, are you implementing any custom filters or special configurations for the DateFilter in your application? Your insights would be very helpful for further investigation. Thank you!
b
Hi @Mauricio Cabezas We are using React with goodData/sdk-ui-all: "10.13.0".
we are using DateFilter component from goodData/sdk-ui-filters.
Screenshot 2025-03-06 at 9.09.29 PM.png
m
Hi, thank you for the provided information. First of all I would recommend to update your SDK to the latest version, currently 10.22.0 Regarding the issue, and looking your configuration, I can see is in default, and the default setup is without Today and Yesterday. To achieve this you will need to add them manually, as example you can use this:
Copy code
{
                from: 0,
                to: 0,
                granularity: "GDC.time.date",
                localIdentifier: "TODAY",
                type: "relativePreset",
                visible: true,
                name: "",
            }
For Yesterday would be the same, but
from: -1
,
to: -1
. More information you can find here. Please, then let us to know if you manage to edit the DateFilter.