I have a Date datatype field in my dataset, I have created below calculated field to extract month name ,year, week from date
formatDate({departure_date},‘yyyy’)
formatDate({departure_date},‘MMMM’)
formatDate({departure_date},‘ww’)
But when I use these calculated fields in visual I get the error “Your function expression contains an unsupported date”
Hi @Tanu_13,
Are you trying to just grab specific portions of your date from a full date field? If so, maybe you could try the truncDate function instead?
Additionally, you can refer to the documentation below for supported date formats in Quick Sight:
Hi @Brett , the date field is using supported format yyyy-mm-dd, My purpose requires use of formatDate and not truncDate
I need three calculated fields, for year , for month_name, for week_number.
The calulated fields are saved successfully without errors but I dont why error appears when i try to use them in filter or visual.
Hi @Tanu_13,
Interesting, could you share a bit more about the scenario…what type of visual are you trying to build, what fields are being utilized within the visual (feel free to share a picture of the fields in the field well so that I can see where they’re being used as well) and are there any filters being utilized on the visual?
Hi @Tanu_13,
If you’re using a supported date format and still receiving this error, this may be a system bug you’re encountering. I would suggest creating a support ticket so that you can get more direct assistance with your account.
Following up here as it’s been awhile since we last heard from you on this thread; did you have any additional questions or were you able to find a work around for your case?
If we do not hear back within the next 3 business days, I’ll close out this topic.
Since we have not heard back, I’ll go ahead and close out this topic. However, if you have any additional questions, feel free to create a new post in the community.