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

Import/Direct Query Relationship Error (My date data types are both datetime)

Hello,

 

I have a relationship between a DateDim table (Import) to a OrderFact table (Direct Query).  

 

mihudic_0-1651523245315.png

 

I'm then calculating the amount of time between two dates, excluding weekends.  Calculated column below with error message:

mihudic_1-1651523326720.png

 

It seems as if there is an issue with the relationship so I went and looked to find this:

 

mihudic_2-1651523387509.png

 

I've never seen that type of annotation before for relationships.  Without knowing what the opposing carrots mean, I cannot really figure out a resolution.

 

In addition, to double check on the relationship, I created a table with all of the date fields, which all worked and lined up correctly.  For some reason, I cannot enact the calculated column though.  I either get the error above, or I get "Calculate is not a function" and that there is no relationshiop between the date columns.

 

I'm at a total stopping point, any help is appreciated.

 

Thanks!

 

 

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@Anonymous,

 

Numerous DAX functions are not available in calculated columns when using DirectQuery. Examples include CALCULATE and DATESBETWEEN. As far as the caret symbols in the relationship, it's my understanding that this is the notation when joining an Import table to a DirectQuery table.

 

https://dax.guide/calculate/ 

 

DataInsights_0-1651668650682.png

 





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

Proud to be a Super User!




View solution in original post

1 REPLY 1
DataInsights
Super User
Super User

@Anonymous,

 

Numerous DAX functions are not available in calculated columns when using DirectQuery. Examples include CALCULATE and DATESBETWEEN. As far as the caret symbols in the relationship, it's my understanding that this is the notation when joining an Import table to a DirectQuery table.

 

https://dax.guide/calculate/ 

 

DataInsights_0-1651668650682.png

 





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

Proud to be a Super User!




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