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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Rajiv1237
Resolver I
Resolver I

CrossJoin happens on Date column relation in July 2017 update

I have joined two tables on date column. Instead of inner join Power BI doing cross join.

 

Column Names are CreatedOnDate and PK_Date.

 

Join_InIssue.PNGCrossJoin.PNG

1 ACCEPTED SOLUTION
Rajiv1237
Resolver I
Resolver I

Hello All,

 

I got the solution. It is date format issue (Weird)

My one column Date format was dd/mm/yyyy and other table column format was mm/dd/yyyy.

I changed that format in my SQL table and repopulated the data and now relationship is working.

 

Seriously I never thought Date format casued this issue. Very Weird.

 

IssueFixed.PNG

 

View solution in original post

6 REPLIES 6
Rajiv1237
Resolver I
Resolver I

Hello All,

 

I got the solution. It is date format issue (Weird)

My one column Date format was dd/mm/yyyy and other table column format was mm/dd/yyyy.

I changed that format in my SQL table and repopulated the data and now relationship is working.

 

Seriously I never thought Date format casued this issue. Very Weird.

 

IssueFixed.PNG

 

bullius
Helper V
Helper V

Have you tried double-clicking on the relationship and changing the "Cross filter direction"?

Yes tried that
Rajiv1237
Resolver I
Resolver I

Hello All,

 

I have pulled data from OData Feed into Power BI and joined two tables based on dates and that join is not working.

I converted the datatype of both column to Date.

 

Moment I select columns from both tables data goes off. Quite weired. Both column is of Date datatype.

 

Issue1.PNGData2_Issue2.PNGData is coming.PNGDataIsNotComing.PNG

To fix this issue, I have created new column in Power BI desktop using formula 

CreatedOnDate = DATE(YEAR(sab_offerdetailses[CreatedOn]), MONTH(sab_offerdetailses[CreatedOn]), DAY(sab_offerdetailses[CreatedOn])).

 

After that I made a relationship between tables on CreatedOnDate and PK_Date column. Instead of inner join it does cross join.

 

Now I am scratching my head 😞

Join_InIssue.PNGCrossJoin.PNG

 

Raw data of joining columns

RawData.PNG

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors