Forum Discussion

mukdo's avatar
mukdo
Frequent Visitor
3 years ago

table with date filter between date range

I have two Table and there are no relationship between them. One table (FilterTable) has one column Months. Another Table (DateRangeTable) have some column like StartDate , EndDate. Where date ranges (StartDate - EndDate ) can be overlapping.

 

 If I select any Month like May-2011, it should return those date ranges ( StratDate - EndDate) which  are related to selected month. 


FilterTable: 

 

DateRangeTable:

 

Thank you

 

4 Replies

  • Hi mukdo ,

    It is simple. You have use create a date dimension table and create one to many relationship with both the tables. and then use montth slicer from the date table it should work.

     

    Regards,

    Nikhil Chenna

     

    Appreciate with a Kudos!! (Click the Thumbs Up Button)
    Did I answer your question? Mark my post as a solution!

    • NikhilChenna's avatar
      NikhilChenna
      Skilled Sharer

      Hi mukdo ,

      If you want the second table to show the data according to the first table filter there should be a relationship without it you cannot filter.

       

      Regards,

      Nikhil Chenna

       

      Appreciate with a Kudos!! (Click the Thumbs Up Button)
      Did I answer your question? Mark my post as a solution!

      • mukdo's avatar
        mukdo
        Frequent Visitor

        I need to Date Between like DATESBETWEEN(Months, StartDate, EndDate) then how can I relation with it?

        Suppose I Select Month May-2011

        and I have a data which StartDate Jan-2010 and EndDate Feb-2015
        this data should be return. Casuse its in between Start and EndDate