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.
Hi
I want to create the same formula in power bi from Excel. But not too sure how to achieve this. the main formula used in Excel in column to DUE is =IF([@PromiseDt]=0,"Uncommitted",[@PromiseDt]-MAX(TODAY(),[@DueDate]))
DueDate | PromiseDt | to Due |
27-Jan-22 | Uncommitted | |
01-Feb-22 | 22-Apr-2022 | -5 |
17-Apr-22 | 06-May-2022 | 9 |
08-Aug-22 | 08-Aug-22 | 0 |
12-Oct-22 | 27-Apr-2022 | -168 |
17-Apr-22 | 8-May-2022 | 21 |
07-Jun-22 | 12-Jul-2022 | 35 |
12-Jul-22 | 12-Jul-22 | 0 |
Solved! Go to Solution.
Hi @drgrd13
you may Create a new Column
To Due =
IF (
ISBLANK ( Table[PromiseDt] ),
"Uncommitted",
DATEDIFF ( Table[PromiseDt], MAX ( TODAY (), Table[DueDate] ), DAY )
)
Thank you for the help but the formula is resulting in an error msg as below
Yes this is not allowed. You can retun blank
To Due = IF ( NOT ISBLANK ( Table[PromiseDt] ), DATEDIFF ( Table[PromiseDt], MAX ( TODAY (), Table[DueDate] ), DAY ) )
Or otherwise, you can return the date as string.
Hi @drgrd13
you may Create a new Column
To Due =
IF (
ISBLANK ( Table[PromiseDt] ),
"Uncommitted",
DATEDIFF ( Table[PromiseDt], MAX ( TODAY (), Table[DueDate] ), DAY )
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |