Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Date Diff start date not required to preceed end date

The DATEDIFF function in Power BI DAX, should not require the start date arg to preceed the date given the end date arg. The DATEDIFF function in SQL does not impose this requirement. This would make implementing the DATEDIFF arg in a date dimension table (with dates going into the future) much easier. Currently the DATEDIFF must be wrapped in an IF statement to work correctly. Finally, it would seem like this could be fixed by having DATEDIFF in Power BI DAX return a signed, rather than unsigned integer.
Status: Needs Votes
Comments
ssoni1
New Member
I too have similar situation while working on the Dashboard for Network Scehculde for project Plan; This make it simpler to write DAX
a_nagel
New Member
I would suggest making a new function to ensure existing reports keep working
foxan
Regular Visitor
Since when has this been rolled out without notice?
fbcideas_migusr
New Member
Datediff now returns a negative value so this has been implemented? No notice?!
josh_flory1
New Member
However... I don't think this change was done for SSAS Tabular as DATEDIFF there still returns the same error...?
wanthanaj1
New Member
It had been working in SASS since Jan 2018 until yesterday (May 2019 I updated my VS 2017).
fbcideas_migusr
New Member
Status changed to: Needs Votes