# Errors when adding specific calculated field to dataset

**URL:** <https://community.amazonquick.com/t/errors-when-adding-specific-calculated-field-to-dataset/5321>\
**Category:** Q&A\
**Tags:** filters, data-source, quick-sight\
**Created:** [August 10, 2022, 11:14am UTC](https://community.amazonquick.com/t/errors-when-adding-specific-calculated-field-to-dataset/5321 "2022-08-10T11:14:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dom](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@Dom](https://community.amazonquick.com/u/Dom)\
**Post date:** [August 10, 2022, 11:14am UTC](https://community.amazonquick.com/t/errors-when-adding-specific-calculated-field-to-dataset/5321/1 "2022-08-10T11:14:00Z")

</div>

I want to create a month year parameter filter.  
I have managed to get it working buy creating the following calculated field.

Month-Year  
formatDate({T\_tradeDateTime}, ‘MM yyyy’)

result example 06 2021 etc..

I use this field (that is a string) then to create a parameter and filter.  
This works on dataset I imported from csv into spice.

If I do the same on a dataset I have in direct query from RDS database the filter and parameter are created but then it never refreshes with the values and I get an error saying refresh later or invalid filter.

If I try to import the dataset into SPICE I get :  
error and email.  
“DemoData” failed to refresh

A problem occurred during the refresh of your SPICE dataset for the account “ncfx”. Here are the details:

An invalid date format appeared. Check your dataset in AWS Quick Sight and try again.

If I add the custom field after the data is imported I get the error at next refresh.

Can anyone help me understand where the problem lies?  
Thank you in advance!  
Domenico

---

<div class="post-metadata">

**Author:** ![Koushik\_Muthanna](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/koushik_muthanna/32/3290_2.png) [@Koushik\_Muthanna](https://community.amazonquick.com/u/Koushik_Muthanna)\
**Post date:** [August 11, 2022, 12:18pm UTC](https://community.amazonquick.com/t/errors-when-adding-specific-calculated-field-to-dataset/5321/2 "2022-08-11T12:18:49Z")

</div>

Hi Domenico,

I would suggest you to open up a support case and provide details on your dataset and analysis. Here are the steps to open a support case so that we can help you further: [Creating support cases and case management - AWS Support](https://docs.aws.amazon.com/awssupport/latest/user/case-management.html). If your company has an internal IT team, you might not have direct access to AWS Support and will need to raise an internal ticket to your IT team. They’ll open an AWS Support case on your behalf.

Regards,  
Koushik

---

<div class="post-metadata">

**Author:** ![Dom](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@Dom](https://community.amazonquick.com/u/Dom)\
**Post date:** [August 11, 2022, 12:46pm UTC](https://community.amazonquick.com/t/errors-when-adding-specific-calculated-field-to-dataset/5321/3 "2022-08-11T12:46:45Z")

</div>

Thank you I have now opened a support ticket.
