cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

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.

Top Solution Authors
Top Kudoed Authors