Forum Discussion
Winterkid
Oct 10, 2022Copper Contributor
Sharepoint Online Calculated column
Hi All, I am currently trying to use calculated columns whereby to do calucaltion. I want the calculated Column TotalAmountSGD, to calculated IF the Currency is SGD then Calculate the Cost of the, ...
Winterkid
Oct 10, 2022Copper Contributor
RobElliott thank you for your fast reply.
the exchange rate will be key in from powerapp application itself from my finance members.
as our currency default is SGD my finance colleague will not be going into the application to manually key 1 into the exchange rate as it serve no purpose for them by doing so.
If i set the default value 1 to the exchange rate then it will appear and calculate all the value which will provide false data to the employee before finance colleague update the exchange rate.
Winterkid
Oct 17, 2022Copper Contributor
hi anyone can help me with me on this.
- RobElliottOct 17, 2022Silver ContributorKeying in exchange rates leads to user errors. You would be better to have a list with all the currencies and current exchange rate as a data source. Put that in a gallery on a screen in your app so you can update the exchange rate on a daily basis or however often you do it. Then in your main screen your users would select the currency from a dropdown and it would add the rate in automatically and do whatever calculation you need. This could be a formula so that if the dropdown.Selected.Value = "SGD" then it multiplies it by 1 otherwise it multiplies your total by the exchange rate. Or in your currencies list you just have one otem as SGD with the rate as 1 which would never need to change.
- WinterkidOct 18, 2022Copper Contributor
HI RobElliott thank you for you reply.
understanding your recommendation on creating a data list for the exchange rate.
Due to the timeline i have which i need to start pilot testing with user start of next month, i maynot have enough time to make it.For now, i will still get my finance colleague to manually enter the exchange rate.
in the TotalAmountSGD i have set formula in and it work for now.
=IF(Currency="SGD",Cost,ConvertedSGDRate)
if you have idea on how to create it please do let me know.
attached picture is from my finance colleague for today exchange rate and they only see the middle rate.