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
sandra_p
Helper I
Helper I

Making relationship between 2 date columns breaks one of them

I have a table Date with column Date - where all dates are listed.

Then I have a table with worklogs - each worklog has date, for which it is done.

When I make a relationship between these 2 tables using these date/time columns, the date field in worklogs table breaks and is not recognized as date/time field in existing DAX expressions.

Attached images, how it looks like after the relationship has been made. Interesting detail is, that this happens even, if the relationship  is not active.

no-calendar-icon.pngformatting.pngdate-time-field.png

1 ACCEPTED SOLUTION

Thank you for answer!

In both tables column was formatted as Date/time (time doesn't appear, because in the source, worklogs don't have time, just date). While I didn't made a relationship, everything was ok.

The solution, was simply remove in DAX statements .[Date] part for worklog date. Then everything is ok.

Not sure, why relationship broke it, but removing .[Date] (which was ok, while there was no relationship) after making a relationship, solved the problem.

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@sandra_p , this does not have time. The relation with the date table should work.

Or you need have the only date column

 

Date 1 = Table[Date time].date

 

Join it with date calendar

Thank you for answer!

In both tables column was formatted as Date/time (time doesn't appear, because in the source, worklogs don't have time, just date). While I didn't made a relationship, everything was ok.

The solution, was simply remove in DAX statements .[Date] part for worklog date. Then everything is ok.

Not sure, why relationship broke it, but removing .[Date] (which was ok, while there was no relationship) after making a relationship, solved the problem.

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.