Forum Discussion
Anonymous
8 years agoNot applicable
Calculating Age [Direct Query]
I'm trying to calculate the age of events but using direct query is very different than the reports I've done from spreadsheets in the past. Can someone help me please?
I have Task_Created_Date which shows the date format as xx/xx/xxxx
5 Replies
- danextian
Super User
Hi Anonymous,
Are you referring to Power Query instead of Direct Query?
Calculating age can be achieved by using creating a calculated column in DAX.
DATEDIFF( start date, end date, interval)
- AnonymousNot applicable
Hi there,
no, specifically direct query. I'm pulling data from a live database.
- danextian
Super User
Have you tried creating a custom column that subtracts the start from end date?