Forum Discussion
Anonymous
7 years agoNot applicable
Need help with column calculation
I have two columns Package price and Currency. In the Currency column i have 3 difference currencies present NOK , DKK and EUR. I want the DKK values from Package price to multiplied by 1.28 and...
- Anonymous7 years ago
I am still not able to calculate it this is the error i get
- 7 years ago
Change the last VoucherLog[Currency] to VoucherLog[Package Price]
- 7 years ago
HI, Anonymous
There is a mistabke in your formula
Column = IF(VoucherLog[Currency]="Eur",9.54*VoucherLog[Package Price],IF(VoucherLog[Currency]="DKK",1.28*VoucherLog[Package Price],IF(VoucherLog[Currency]="NOK",VoucherLog[Currency])))Column = IF(VoucherLog[Currency]="Eur",9.54*VoucherLog[Package Price],IF(VoucherLog[Currency]="DKK",1.28*VoucherLog[Package Price],IF(VoucherLog[Currency]="NOK",VoucherLog[Package Price])))Note: Black body partBest Regards,
Lin
themistoklis
7 years agoCommunity Champion
You can also use an if statement:
Measure = IF([Currency] = "EUR", 9.54 * [Package_Price], IF([Currency] = "DKK", 1.28 * [Package_Price], [Package_Price]))
- Anonymous7 years agoNot applicable
"Operator or expression '( )' is not supported in this context."
i got this as a reply , what is my mistake here
- affan7 years agoSolution SageWhich solution have you tried from the above ones?
- Anonymous7 years agoNot applicable
Currently trying all , but struggling to get the outcome I want. Will be trying it again , i must have made a mistake somewhere
- v-lili6-msft7 years agoCommunity Support
HI, Anonymous
Try this formula to add a calculate column
New Package Price = IF ( [Currency] = "EUR", 9.54 * [Package Price], IF ( [Currency] = "DKK", 1.28 * [Package Price], IF ( [Currency] = "NOK", [Package Price] ) ) )Best Regards,
Lin
- Anonymous7 years agoNot applicable
I am still not able to calculate it this is the error i get