Hello @Gabriel_CS, welcome to the QuickSight community!
I may need a little more information about the error you are receiving from the visual since I can’t understand the message, but I think I know what the issue is. Likely, you are getting that error from the visual because you are including the partition of ID in your calculated field, but then not using that field in your visual. Due to this, QuickSight doesn’t understand how to display that data. If you are building a table visual, you can add ID into the field well and then select “Hide” on the field options so it doesn’t display in the table. Then your calculated field should work as you are expecting.
Let me know if that helps or if you have any follow-up questions. Thank you!