Forum Discussion
Find the date difference for a single column
- 6 years ago
Try a new column like
Avg = datediff(maxx(filter(table,table[date] <earlier(table[date])),table[date]),table[date],day)
you may have add or subtract 1.
- data23f6 years agoHelper I
Thanks Amit for your response.
I did try your DAX as a new column and changed data type to date.
and when inserted into the table I got the following:
All the values are the same. Any ideas how to fix this?
Thank you.
- data23f6 years agoHelper I
Can someone please assist?
I have tried searching on the Community, on YouTube, and online, but I can't get this to work.
Probably 20 different formulas I've used and I still can't get this date difference to work. I've tried creating a separate column and then doing a date difference, but still nothing.- HotChilli6 years agoCommunity Champion
Can you clarify this please "Also, this column needs to be dynamic meaning if a value is selected in a slicer, then this new column should reflect the new calculation difference."
What is in the slicer?
If you post some sample data (not a picture) and desired outcome ,someone will help you out.