In the AWS QuickSight report, both the Value Type and Amount columns are defined as string data types. The Value Type column contains multiple distinct values, and for each value type, we need to display the corresponding Amount with a thousands (1,000) separator.
Since the Amount column is also a string, is it possible to achieve thousands Separator formatting in this scenario?
Hi @redyampavan,
One additional thing to add to the response above, if your field needs to stay as a string, you could building an ifelse statement as a work around but this may be limited on the number of comma’s that can be added. For your ifelse statement, I would suggest looking further into the two functions ‘Strlen’ and ‘substring’. Strlen can help in recognizing the string length, so if it’s longer than 3, you can start adding commas.
In our case, the Amount column is intentionally maintained as a String, because we are using Value Type–based dynamic logic where multiple value types (numbers, currency, etc.) are handled within a single calculated field. Due to this design, converting the Amount column from String to Decimal/Integer is not feasible at the dataset level.
Yes, we did consider using an ifelse-based workaround with functions like strlen and substring to manually insert commas based on the string length. However, as you mentioned, this approach has limitations—especially when dealing with varying number lengths, multiple commas, and different value types (numbers vs currency). It can also become complex and hard to maintain as the data grows.
Given these constraints, we understand that applying a standard thousands separator is not natively supported when the field is retained as a String, and any workaround would be limited and not fully scalable.
Thanks for confirming and sharing the possible approach.