Use parseInt function for converting a string to an integer. This function returns all rows that contain a decimal, integer, or null value, and skips any rows that don’t.
Please refer to the below Quick Sight community post this might be helpful for you.
Since we have not heard back from you, I’ll go ahead and close/archive this topic. However, if you have any additional questions, feel free to create a new topic in the community and link this discussion for relevant information.