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
quentin36250
Regular Visitor

Problem date relationship Direct_query calendar table/ import table

Hello I contact you because I have imported a direct query dataset with a calendar table inside it, i have also a imported table with dates and cost and with the relationship between the two tables, some rows are filtered (so my sum is incorrect) and I do not know why. If i deleted this calendar table (direct query) and replace it by an import calendar table with the same formula and recreate the relationships as it was, it works (sum is correct). Can someone have an idea why it is not working with my direct query calendar table?

Thanks

2 ACCEPTED SOLUTIONS
miTutorials
Super User
Super User

 

Kindly check the below.

 

  • Check Data Types: Verify that the date columns in both tables are of the same data type.

  • Review Relationships: Double-check the relationships to ensure they are correctly defined and are not causing any filtering issues.

  • Check Dates in Calendar table : Make sure you have all the dates from your fact table available in your calendar table 

 

View solution in original post

Anonymous
Not applicable

Hi,@quentin36250 .I am glad to to help you.
Hello,@miTutorials ,thanks for your concern about this issue.

Your answer is excellent! And I would like to share some additional solutions below.

As @miTutorials  said. This is very strange phenomenon. You mentioned in your post that the calendar creation formulas are consistent in DriectQuery and Imporet connection modes, but are correct in Import connection mode.
There are a number of limitations for the DirectQuery connection mode. In the case of calendar tables, calendar tables in DirectQuery join mode do not display calendar hierarchies, and DirectQuery mode does not support drill-down date columns by year, quarter, month, or day.
This may have an impact when you create reports.
Therefore, I recommend you to use mixed mode (DirectQuery+Import) without affecting the report creation and presentation.
Or change DirectQuery to import (please be careful when trying to do this as it is irreversible and you cannot change from import back to DirectQuery).

vjtianmsft_0-1720403555206.png

 


Here's the official documentation, hope it helps you.
URL:
Use DirectQuery in Power BI Desktop - Power BI | Microsoft Learn
Use composite models in Power BI Desktop - Power BI | Microsoft Learn

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

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
Anonymous
Not applicable

Hi,@quentin36250 .I am glad to to help you.
Hello,@miTutorials ,thanks for your concern about this issue.

Your answer is excellent! And I would like to share some additional solutions below.

As @miTutorials  said. This is very strange phenomenon. You mentioned in your post that the calendar creation formulas are consistent in DriectQuery and Imporet connection modes, but are correct in Import connection mode.
There are a number of limitations for the DirectQuery connection mode. In the case of calendar tables, calendar tables in DirectQuery join mode do not display calendar hierarchies, and DirectQuery mode does not support drill-down date columns by year, quarter, month, or day.
This may have an impact when you create reports.
Therefore, I recommend you to use mixed mode (DirectQuery+Import) without affecting the report creation and presentation.
Or change DirectQuery to import (please be careful when trying to do this as it is irreversible and you cannot change from import back to DirectQuery).

vjtianmsft_0-1720403555206.png

 


Here's the official documentation, hope it helps you.
URL:
Use DirectQuery in Power BI Desktop - Power BI | Microsoft Learn
Use composite models in Power BI Desktop - Power BI | Microsoft Learn

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

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

 

miTutorials
Super User
Super User

 

Kindly check the below.

 

  • Check Data Types: Verify that the date columns in both tables are of the same data type.

  • Review Relationships: Double-check the relationships to ensure they are correctly defined and are not causing any filtering issues.

  • Check Dates in Calendar table : Make sure you have all the dates from your fact table available in your calendar table 

 

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