Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Filtering based on Todays date

I have two coloumns in one of the tables of my data model : Start Date and End Date 
I need to filter values based on the Condition that every time the user opens the report ,the date of opening the report(Current date) should fall between the Start Date and End Date .
Can anyone help me out in this?

Thanks in advance !!!

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous ,

     

    Create a measure like below and add it to filter.

    Measure = IF(SELECTEDVALUE('Table'[date])<=TODAY(),1,0)

    Result would be shown as below.

     

    Best Regards,

    Jay 

3 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you for the answer.Do I need to create a new date table which is only for dates or I can add this column in the exisiting table which has start and end date coloumns?

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Create a measure like below and add it to filter.

    Measure = IF(SELECTEDVALUE('Table'[date])<=TODAY(),1,0)

    Result would be shown as below.

     

    Best Regards,

    Jay