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
CloudMonkey
Post Prodigy
Post Prodigy

Mapping date field to date/time field

Hi,

 

I need to map a date field to a date/time field. Using query editor I tried changing the data type of the "date/time" field to "date". But when I try to map the two tables together I get a dotted line (i.e. there are no relationships). I've got through the two fields and there are definately the same dates in each field. Please can you tell me how to fix?

 

Thanks,

 

CM

1 ACCEPTED SOLUTION
v-jiascu-msft
Employee
Employee

@CloudMonkey,

 

Hi CM,

 

If you got a dotted line, you have gotten a relationship that is inactive. Because only one relationship is active at a single time. Please check it out.

 

You mentioned there are no relationships. Please try to active it manually.

If the issue is still there, please provide your .pbix file. At least a sample and some snapshots.

 

Mapping date field to datetime field.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
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

2 REPLIES 2
v-jiascu-msft
Employee
Employee

@CloudMonkey,

 

Hi CM,

 

If you got a dotted line, you have gotten a relationship that is inactive. Because only one relationship is active at a single time. Please check it out.

 

You mentioned there are no relationships. Please try to active it manually.

If the issue is still there, please provide your .pbix file. At least a sample and some snapshots.

 

Mapping date field to datetime field.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you @v-jiascu-msft when I went to the "Edit relationship" window in your screenshot there was a message telling me the relationship was inactive because it was conflicting with another relationship. I incorrectly assumed the dotted line meant the data formats were not compatible. But I see now that Date fields can be mapped to Date/Time fields.

 

I removed the other conflicting relationship and it now works.

 

Thanks,

 

CM

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.