Forum Discussion
Power query formula
- 2 years ago
matka123499
Create a conditional column in Power Query and use the below formulaIf the post helps please give a thumbs up
If it solves your issue, please accept it as the solution to help the other members find it more quickly.
Tharun
Hi matka123499 ,
I would only add to tharunkumarRTK solution, in the formula box of the custom column in Power Query:
if Text.Contains( [ExpenseBasis_ID], "Percentage" ) then [Amount1] else [Amount1] * 12
This suggestion comes because you state that "If ExpenseBasis_ID has "Percentage" " so I would imagine that the ExpenseBasis column may sometimes have some other characters when its Percentage.
Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!
You can also check out my LinkedIn!
Best regards,
Gonçalo Geraldes