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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Mumin192
Helper I
Helper I

Direct Query Relationships

Hello,

I'm importing sql tables in 'Direct Query' mode

I need to create a calendar table that connects between them

Is it OK to create a calendar table, or it should be imported also in 'Direct Query'?
When I created one and created a relationship, it showed a space in the raltionship line at the beginning and end of it. Does this mean anything like it will not give accurate results?
Thanks

Mumin192_0-1665739396010.png

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Mumin192 ,

 

As far as I know, if you add a calendar table into your data model, your connection mode will change to mixed mode. 

RicoZhou_0-1665999851244.png

If you want to keep direct query connection in your data model, please load a calendar table from SQL Server.

 

Best Regards,
Rico Zhou

 

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

amitchandak
Super User
Super User

@Mumin192 , Better to have at source. but both work, Table in Power BI and Table at source

Direct Query - End to End (Connection to Publish): https://youtu.be/cf-YNWX8Qow

https://youtu.be/cQfJ0GmQ5os

https://youtu.be/24arfrD3Qzk

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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