cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
patri0t82
Helper III
Helper III

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 IV
Super User IV

@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...



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
amitchandak
Super User IV
Super User IV

@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...



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

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
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.