Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Linking Tables - dates

Hi, 

 

I have a master Date table, and I'm trying to link it to a number of other tables, all with Year and Month. The Year and Month columns in my other tables are stored as Text, which I think might be part of the problem, but I can't seem to change this without getting an error... ??

 

MASTER DATE TABLE

 

OTHER TABLES

 

 

Is anyone able to help?

 

Thank you 

Sonia

  • Hi,

     

    In the Other Table, generate a genuine date from the Month and Year by using this formula

     

    =1*("1/"&Table2[Month]&"/"&Table2[Year])

     

    Format this new column as Date and give it a meaningful heading.  Now create a relatioship from the Date column (that you just created with the formula above) of the Other Table to the Date column of your caalendar table.

     

    Hope this helps.

10 Replies

  • Hi,

     

    In the Other Table, generate a genuine date from the Month and Year by using this formula

     

    =1*("1/"&Table2[Month]&"/"&Table2[Year])

     

    Format this new column as Date and give it a meaningful heading.  Now create a relatioship from the Date column (that you just created with the formula above) of the Other Table to the Date column of your caalendar table.

     

    Hope this helps.

  • rocky09's avatar
    rocky09
    Solution Sage
    Format the date column in master table with out time stamp. It is better to have a date column in other tables then you can play with the data.
    Btw, one table should have unique values.
    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Rocky, 

       

      The reason I have the time stamp is because the main table it's linked to is a list of Facebook posts, which are time stamped.

       

      This table is linked to the main Date Table but I need the others linked too. 

       

      Any suggestions?

       

      Also, how do I convert the dates in my other tables from text?