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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
patri0t82
Post Patron
Post Patron

Multiple Active Relationships, Help with USERELATIONSHIP

Hello,

I have two tables with three different columns that match, that I would like active relationships for:

 

'Gate Scans'[Corrected Date] - 'Daily Force Report'[Date]

'Gate Scans'[Company] - 'Daily Force Report'[Company]

'Gate Scans'[Day or Night] - 'Daily Force Report'[Days/Nights]

 

All I'm trying to do is have one date slider at the top that filters a table visual with lists from both separate tables. 

If I make the 'Corrected Date - Date' relationship active, it gets me the closest, but I'm still not able to interact with the companies together. Likewise I can't filter on Day or Night fields. 

 

I understand I'll need to create some sort of measure using USERELATIONSHIP, but I'm having a difficult time understanding the concept. I don't understand how the 'CALCULATE' function would fit in if I'm just trying to slice and dice.

 

Thanks for your help.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@patri0t82 , Do you need userealtionship means alternate join or concatenated key

 

In case you need -concatenated key 

 

New column in 'Gate Scans'
key = [Corrected Date] & [Company] & [Day or Night]

new column in 'Daily Force Report'
key = [Date] & [Company] & [Days/Nights]

 

for userelationship

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@patri0t82 , Do you need userealtionship means alternate join or concatenated key

 

In case you need -concatenated key 

 

New column in 'Gate Scans'
key = [Corrected Date] & [Company] & [Day or Night]

new column in 'Daily Force Report'
key = [Date] & [Company] & [Days/Nights]

 

for userelationship

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

Thank you for this solution - I believe the 'key' idea is going to work fine. Is this something that is used pretty common?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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