Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

date category in query editor

Hello,   I would like to create a custom column into query editor which give the date category as follow if date1 is null then 'No Data' if date1 - today() < 0 then 'Date Past' if date1 - today(...
  • Nathaniel_C's avatar
    6 years ago

    Hi Anonymous ,

    You need to use

     DateTime.Date(DateTime.LocalNow()))

    You may want to go to this posting, I included my pbix at the end

    Using the today function

     

    Let me know if you have any questions.

    If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
    Nathaniel