Forum Discussion

Asma's avatar
Asma
Frequent Visitor
9 years ago
Solved

Relative Day DAX

Hello everyone, I need to create a column in a date table that show the relative day Number  for exemple if the date of Today is 09/03/2017 If the day chosen is 09/03/2017 than Relative day Number ...
  • Asma's avatar
    Asma
    9 years ago

    v-huizhn-msft Well I found the solution, here it is :) 

     

    Relative Day Number = IF('Dates'[Date]> TODAY();(DATEDIFF(TODAY();'Dates'[Date]; DAY ));-1 *(DATEDIFF('Dates'[Date];TODAY(); DAY )))

    Thank you for your help