Hi @Dhilip Subramanian ,
Thankyou for using Microsoft Q&A platform and thanks for posting your question here.
As I understand your requirement, you want to transform the data as mentioned by replacing USD with '$' symbol considering negative and positive values. Please let me know if my understanding is incorrect.
You can use case statement to achieve this requirement.
Kindly try this expression in derived column transformation:
case(instr(toString(byName('Amount')),'-')!=0,'-$'+rtrim(ltrim(Amount,'-'),'USD'),instr(toString(byName('Amount')),'(')!=0,'-$'+rtrim(ltrim(Amount,'('),') USD'),'$'+rtrim(ltrim(Amount,'-'),'USD'))
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on
or upvote
button whenever the information provided helps you.
Original posters help the community find answers faster by identifying the correct answer. Here is how - Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators