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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
fisqkuz1
Frequent Visitor

relationship between two datetime columns

Is it impossible to create a one-to-many relationship given a datetime datatype for both columns?

 

There are no null values, in neither.

They are both date/time in power query.

Each value only exists 1 single time in the first table.

 

fisqkuz1_0-1649939661831.png

 

Why am I not allowed to create a one-to-many rel?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @fisqkuz1 ,

 

According to your screenshots, it seems that you have highlighted the mtuCetStart column from Table1 and weekDayCet column from Table2,  but they are not like you mentioned ——They are both date/time in power query.

Eyelyn9_0-1650331888257.png

 

So do you mean mtuCetEnd or mtuCetStart column from Table2? Based on my test, the default relationship would be one-one,which is the most suitable.But certainly you could change it to one-many.

Eyelyn9_1-1650332635197.png

 

In additional, I saw mtuID and mtuCetStart column in both tables, therefore I'd suggest you created relationships based on these fields which is meaningful.

 

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @fisqkuz1 ,

 

According to your screenshots, it seems that you have highlighted the mtuCetStart column from Table1 and weekDayCet column from Table2,  but they are not like you mentioned ——They are both date/time in power query.

Eyelyn9_0-1650331888257.png

 

So do you mean mtuCetEnd or mtuCetStart column from Table2? Based on my test, the default relationship would be one-one,which is the most suitable.But certainly you could change it to one-many.

Eyelyn9_1-1650332635197.png

 

In additional, I saw mtuID and mtuCetStart column in both tables, therefore I'd suggest you created relationships based on these fields which is meaningful.

 

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@fisqkuz1 , They need to be of the same data type.

One side should not have any duplicate and blank values , they you should be able to join

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

hi Amit, please read my post. all these conditions are met

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors