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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
mariakn6
New Member

Date in relationship

I have 2 tables, One is DimDate, other one if FactTable with the date column that has "Date" type . When I make relation between Date columns in these two tables, The type of date column in Fact table will change automatically and it's not date more.

What's wrong?

 

5 REPLIES 5
mariakn6
New Member

Thank you for your prompt answer,

As you can see, both columns are Date.

mariakn6_0-1734701028450.pngmariakn6_1-1734701051143.png

But in Call Center table, you can see call date is not determin as Date in field list

Kedar_Pande
Super User
Super User

@mariakn6 

  1. Check the data types of both the Date columns. In the FactTable, the Date column should be set to Date type. In the DimDate table, the Date column should also be Date.
  2. Ensure there are no time values in the FactTable[Date] column before creating the relationship, as Power BI might interpret it as a Date/Time type, which can cause issues.

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

mariakn6
New Member

Thank you for your prompt reply. Of course I chacked data types before. I attached some photos here. 

Please take a look as it never happend for me before.

Call center is my Fact table and you can see Call Date field after relation.

mariakn6_0-1734697895584.png

 

danextian
Super User
Super User

Hi @mariakn6 

 

That shouldn't be the case. Please post a screenshot of the date column's data type.

The date column below is related to a dates table but data type still remains date.

danextian_0-1734696013706.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
rajendraongole1
Super User
Super User

Hi @mariakn6 - Crosscheck, the if there is  any mismatched data types between the DimDate and FactTable date columns or due to ambiguity introduced by the column's formatting or data structure. 

Navigate to the Modeling tab in Power BI.
Select the column in question.
Change the data type to Date for both columns.

 

or you can also fix it at power query editor

Go to Home > Transform Data to open Power Query Editor.
Select the FactTable date column.
Remove or replace any non-date values.
Set the column’s data type explicitly to Date.
Apply changes and close Power Query Editor.

 

 

or 

Delete the existing relationship between DimDate and FactTable.
After ensuring both columns are of the same type (Date), recreate the relationship:
Drag the date column from DimDate to the corresponding column in FactTable in the Model view.
Set the relationship as Many-to-One (Single) and ensure the cardinality and cross-filter direction are correct.

 

Hope the above details helps to fix the issue.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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