I’m working on a project in which I need to dynamically format a double field into different currency formats based on a currency code stored in another column of the same table. The catch is that the currency might vary row by row.
For example, consider this table:
Amount | Currency Code |
---|---|
1234.56 | USD |
789.01 | EUR |
345.67 | JPY |
I want to display the Amount
column formatted like this:
Amount | Currency Code |
---|---|
$1,234.56 | USD |
€789.01 | EUR |
¥346 | JPY |
Does anyone have experience implementing something like this? Are there any built-in tools, transforms, or visual formatting options in Foundry that can handle dynamic currency formatting at the row level?
If not, would creating a custom transform or pipeline be the best approach? Open to hearing creative solutions or best practices - any suggestions are welcome.
Thanks!