Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have an account statement I want to send out to our customers.
This will consist of Invoice Number, PO #, Invoice Date, Due Date, then a calculated column on how many days Past Due, then finally a Balance $.
I will be showing all current and past due. The problem is when we send them ones that are not past due I wanted a way to format it so it isn't negative so I thought maybe I could come up with a way to put in text and column value for all past due < 0.
I came up with this Power Query Custom Column but I want to know if something like this is even possible.
if [Past Due] > 0 [Past Due] else "Due in" && [Past Due]
So if past due is great than 0 keep it that number and if Past due < 0 the column would have Due in 34 days. The other problem is converting that -34 to a positive so it shows Due in 34 Days rather than Due in -34 days.
So any advice would be greatly appreciated. Thank you!
Solved! Go to Solution.
Something like the following should work...
if [Past Due] > 0 then [Past Due] else "Due in " & Text.From([Past Due]*-1) & " days"
Proud to be a Super User! | |
Something like the following should work...
if [Past Due] > 0 then [Past Due] else "Due in " & Text.From([Past Due]*-1) & " days"
Proud to be a Super User! | |
That was perfect! Thank you very very much!