Forum Discussion

MarionKeller's avatar
MarionKeller
New Member
7 years ago

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 Function but it gives me the following error message:

Query(1,1) Function 'DATEDIFF' is not allowed as part of calculated column DAX expressions on Direct Query models

 

Can I use it as measure, I know i need to filter the Results somehow by row.

Any help is appreciated

6 Replies