Forum Discussion
Karthikreddy523
3 years agoFrequent Visitor
Date Difference in Direct query
How to calculate the date difference between 2 date columns in Direct query? I tried DateDiff function, but this is not supporting in Direct Query mode
5 Replies
- Greg_DecklerCommunity Champion
Karthikreddy523 Try:
( [Date 1] - [Date 2] ) * 1.- AnonymousNot applicable
I tried it,but the results are not accurate and i need the difference in years.Please find the screenshot here
- AnonymousNot applicable
Are there any other ways of addressing this Date Difference issue in Direct Query?
- grazitti_sapnaSuper User
Hey,
You can try using ([Date A]-[Date B])*24.
- CathyTHelper I
None of the above options work. I always get the "not supported in directquery mode" message.