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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Anonymous
Not applicable

Relationship not returning the same values as JOIN

Hey everyone,

I have a table which is in a relationship with a dimension table and I do the following calculation:

 

temp = IF(RELATED(Table2[Column1])=5, Table1[Column1])

Measure = DISTINCTCOUNT(Table1[temp])

 

However if I make a left join with the source table and the dimesnion table and change the calculations like this I get a different result:

temp = IF(Table[Column2])=5, Table[Column])

Measure = DISTINCTCOUNT(Table1[temp]) 

 

What is the difference between a relationship and a join? Why doesn't it work the same? 

 

 

 

 

 

 

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

 

On my side, I can't reproduce your issue. I think you use the dimension table as the main table, so the measure get the difference result, perhaps you can use the table1 as the main table and try again.

 

Can you share some detailed information about your tables?

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.