Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
DaysLeft column uses DATEDIFF forumula
DaysLeft = DATEDIFF('Table_INPUTDATA_Ref'[Task DueDate - Copy], TODAY(),DAY)
Task DueDate, column Type is Text
Task DueDate - Date, column Type is Date
DueStatus column, has conditions and is displaying incorrectly.
I noticed DaysLeft returned values that are 'reversed' ie positive days 8914 are suppose to be negative -8914. The negative days -96 are supposed to be positive ie 96
The result is, the column DueStatusdisplays DueStatus incorrectly.
How can DaysLeft/DateDiff return an accurate values
TIA
Solved! Go to Solution.
Hello @dd88
I assumed 1/09/2024 means 1 September 2024.
Looking at your DAX, start date is 1/9/2024 and end date is TODAY(), the value will be negative because end date is less than start date.
Try switching the DAX.
DaysLeft = DATEDIFF(TODAY(),'Table_INPUTDATA_Ref'[Task DueDate - Copy],DAY)
Hope this will help you.
Thank you.
Hello @dd88
I assumed 1/09/2024 means 1 September 2024.
Looking at your DAX, start date is 1/9/2024 and end date is TODAY(), the value will be negative because end date is less than start date.
Try switching the DAX.
DaysLeft = DATEDIFF(TODAY(),'Table_INPUTDATA_Ref'[Task DueDate - Copy],DAY)
Hope this will help you.
Thank you.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 42 | |
| 40 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 149 | |
| 105 | |
| 63 | |
| 36 | |
| 36 |