Forum Discussion
HaiVN
Helper III
1 year agoIf then else i power query
Hello , I need supports from community! I have a data with 2 columns : Company ( text) and Sale ( number). I want to create a column which shows: if [Company] = "A" then [Sale] = - [Sale] else ...
- Anonymous1 year ago
Hi HaiVN
Did you solve your problem? Based on my testing, the reply given by Akash_Varuna seems to get you the results you want.
If Akash_Varuna 's reply was helpful, would you consider marking his answer as a solution? Please feel free to let us know if you need further assistance.
Best Regards,
Yulia Xu
HaiVN
Helper III
1 year agoAkash_Varuna
if [Company] = "A" then -[Sale] else if [Company] = "B" then -[Sale] else [Sale]
Anonymous
1 year agoNot applicable
Hi HaiVN
Did you solve your problem? Based on my testing, the reply given by Akash_Varuna seems to get you the results you want.
If Akash_Varuna 's reply was helpful, would you consider marking his answer as a solution? Please feel free to let us know if you need further assistance.
Best Regards,
Yulia Xu