Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
User | Count |
---|---|
74 | |
71 | |
42 | |
31 | |
28 |
User | Count |
---|---|
99 | |
93 | |
50 | |
49 | |
46 |