Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Link Date Table with table 'In between'

Hi all,

 

There are 2 tables that I like to link together, however the date column I want to use is in another table. The setup is like this: 

 

Date Table: This is the generic date table that links to all other tables (and I want to use to filter etc).

Monitor_export (This table holds an ID column and the execution_date which I want to use as date). 

Monitor_export_data(This table holds an ID column that links with monitor_export, but has no date column that I want to link to the 'Date Table'.

 

I want to be able to filter the values in monitor_export_data, based on the execution_date column. But however I structure the relationships, I'm not able to make it work. Should I create a direct connection between 'monitor_export_data' and 'Date'?

 

 3 Tables I want to Link

 

Hope someone is able to help! Thanks in advance. 

5 Replies

  • mahoneypat's avatar
    mahoneypat
    Microsoft Employee

    Seems like you could relate Date and Monitor_export on Execution Date, and then connect Monitor Export and Monitor Export Data on the ID column.  Does that not work?

     

    Regards,

    Pat

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi mahoneypat 

       

      I'm able to create the relationship, but whenever I do a calculation based on the date, it doesn't seem to recognize the date table properly. Maybe I've set it up wrongly? 

       

       

      Regards,

       

      Justin

      • mahoneypat's avatar
        mahoneypat
        Microsoft Employee

        Please make sure the data types are the same between your two tables, and that both are Date data type (not DateTime or text).

        Regards,

        Pat