Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Create a new table with filter between two dates in DAX

Hello,

 

Looking for some samples to create a new table from the existing table and restricting it with DATESBETWEEN function where I can provide a start date and end date for my new table.

 

Thanks,

Karthik

  • Anonymous, Try the below code.

     

    DerivedTable = CALCULATETABLE(<existing table name>, DATESBETWEEN(<date column>,StartDate,Enddate))

3 Replies

  • SivaMani's avatar
    SivaMani
    Icon for Resident Rockstar rankResident Rockstar

    Anonymous, Try the below code.

     

    DerivedTable = CALCULATETABLE(<existing table name>, DATESBETWEEN(<date column>,StartDate,Enddate))