Forum Discussion
Anonmous_user
3 years agoNew Member
Difference between two values in which one from Date column and another from measure date
Hi, I am trying to display number of days between two dates : I have date column in mytable and have created Independent Dimdate table and created slicer for Dimdate . now i want to get datediff...
- Anonymous3 years ago
Hi Anonmous_user ,
Here are the steps you can follow:
1. Create measure.
Dim_select = MAXX(ALLSELECTED('Dimtable'),[Date])Measure = DATEDIFF( MAX('mytable'[Create date]), [Dim_select] ,DAY)2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Anonmous_user
3 years agoNew Member
Thanks alot