Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
HolgerS
Frequent Visitor

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

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

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

 

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

 

 

View solution in original post

3 REPLIES 3
HolgerS
Frequent Visitor

Thanks, I will try both solutions.

Holger

amitchandak
Super User
Super User

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

 

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

 

 

Ashish_Mathur
Super User
Super User

Hi,

In a calculated column formula, write this formula

=INT(Data[DateTime])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.