cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
alwweb Frequent Visitor
Frequent Visitor

Do data types make a performance difference for relationships?

I am reading a book that advocates creating relationships between two date data type fields when both tables also have the same information stored as an integer.  

 

As a database person, my gut instinct is to set the relationship on the integer for better performance.  Is this true in Power BI or no?

 

I read somewhere that integers are better than text, but wasn't sure about date/time.

 

Thanks.

1 REPLY 1
Super User
Super User

Re: Do data types make a performance difference for relationships?

Hmm, date/times are actually just decimal numbers so not 100% sure on that one. You'd probably have to test some query in DAX Studio I would imagine to be be sure.


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

Proud to be a Datanaut!