Forum Discussion

HolgerS's avatar
HolgerS
Frequent Visitor
7 years ago
Solved

Relationship between dimension and data table based on date column

Hello,

 

I have problems to build a relationship between a dimension table and a data tabel based on Date. The dimension table contains a column in the Date-format, the data table in the DateTime-format. If this causes the problem: Is there any function, which transforms the DateTime-format into Date-format. I still need the DateTime-format in the original column and want to add a copy as new column only in Date-Format. Thanks for you kind reply.

 

Holger

  • create a new date column using the format function.  And join the dimension using that.

     

    Column = FORMAT(Table[date],"MM-DD-YYYY")

     

     

3 Replies

  • Hi,

    In a calculated column formula, write this formula

    =INT(Data[DateTime])

    Hope this helps.

  • create a new date column using the format function.  And join the dimension using that.

     

    Column = FORMAT(Table[date],"MM-DD-YYYY")