Forum Discussion
MarionKeller
7 years agoNew Member
DateDiff with Direct Query as Measure
I need to have the Date Difference between two Date columns # of Minutes = Datediff(OP_ORDER_ITEM_ARCHIVE[PICKING_AT];OP_ORDER_ITEM_ARCHIVE[REFILLING_AT];MINUTE) I'm using the DateDiff Func...
luke611
6 years agoFrequent Visitor
I have exactly the same. DirectQuery + Oracle database. Any ideas?
lbendlin
Super User
6 years agoDATEDIFF is overrated. Try just subtracting one date from the other. Internally dates are treated as numbers with the whole part representing the days and the fraction representing, well fractions of days. Say you want to know the difference between Date A and Date B in hours, you would write ([Date A]-[Date B])*24