Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |