Forum Discussion

fhashim's avatar
fhashim
New Member
4 years ago
Solved

Taking Date difference using Power Query or DAX

I am working on building a dashboard which takes data from a view using backend as snowflake. I can't make much changes to backend due to limited access.

 

I am facing issue while computing date difference if I use power query using the fomula below

 

Duration.Minutes(start_date - end_date)

 

The problem with above approach is it in not compatiable with DirectQuery mode.

Next, I tried creating a column using formula below

 

 

 DATEDIFF(start_date, end_date, MINUTE)

 

This leads to the following:

We couldn't fold the expression to the data source. Please try a simpler expression.

 

How can can I take the date difference in minute given limited access to backend?

4 Replies