Forum Discussion
Buyer_JC78
2 years agoRegular Visitor
Formula not working - Power BI Desktop
I need help with a Power BI formula. I'm trying to add a column which calculates a negative value from column A (Invoice Value) if column B states "credit note" or if column B states "invoice" then ...
- 2 years ago
Hi Buyer_JC78 -Can you try below calclulated column to reflects the negative values for "CREDIT NOTE" and positive values for "INVOICE".
NewColumn = IF(TRIM(U5PURCHASINGGRID[INVType]) = "CREDIT NOTE", U5PURCHASINGGRID[INVOICE VALUE (LINE)] * -1, U5PURCHASINGGRID[INVOICE VALUE (LINE)])
Hope it works
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Buyer_JC78
2 years agoRegular Visitor
Thank you rajendraongole1, the formula worked! You've saved me lots of time.
Thanks to all for the great advice and links too.