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
DebbieE
Community Champion
Community Champion

More USERELATIONSHIP Problems adding a drill through table

I am starting to think that attempting to USE USERELATIONSHIP for a none active join is a bad idea because im constantly hitting problems. Looking at the following example again

 

theUseRelationshipIssue.JPG

So this is the initial page using the none active Date B (And Ive already asked a question about how I deal with the slicer because that is a blocker at the moment. 

 

But what if I want to drill through to a page with a table?

TheUseRelationshipDrillThrough.JPG

For dateA I can simply drag date from the date table. But DateB, I cant just drag date because its connected to DateA unless I use USERELATIONSHIP.

 

So again Im scuppered. How do I drag dateB into this table using USERELATIONSHIP. I havent kept DateB anywhere in the model because Ive been attempting to make sure no one can access dates from anywhere but the date table

5 REPLIES 5
dudeyates
Frequent Visitor

Hi @DebbieE 

 

You're correct that USERELATIONSHIP can get rather complex, depending on your goals. Not sure if this what you're looking for, but here's an in-depth write up with vid by Alberto Ferrari that recently helped me understand it better: https://www.sqlbi.com/articles/userelationship-in-calculated-columns/ . You might be interested in the end where he uses LOOKUPVALUE to make what was complex rather simple.

 

Hope that helps

James

Fabulous. thank you so much. 

 

Hopefully it mentions slicers and drill throughs because this was the point where I gave up and chose multiple role playing tables.

DebbieE
Community Champion
Community Champion

Without any more advice I have concluded that if you want to drill through to other reports and use date slicers then attempting to use a none active relationship is a none starter. I have chosen to add a new role playing date dimension instead.

selimovd
Super User
Super User

Hey @DebbieE ,

 

there is no DateB, only your values change.

You would have 2 measures:

1. FactDateA. This is using the normal relationship.

2. FactDateB. Here you change the relationship with USERELATIONSHIP.

 

In your report you put the date from the date table in your visual.

If you put in FactDateA you will see the value 30 on 01 Jan 2021.

If you put in FactDateB you will see the value 30 on 01 Mar 2021.

 

Like this, you can analyze both. But the date column you are using is from the date table and is always the same. Only the values change depending on the measure.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

 

 

DebbieE
Community Champion
Community Champion

1. FactDateA. This is using the normal relationship.

2. FactDateB. Here you change the relationship with USERELATIONSHIP.

 

But these arent measures? In terms of dragging in date B how would you create that measure?

 

There is no identifiable measure here. Its a date. I understand how to use USERELATIONSHIP when Im creating for example Last Years Sales, Or Year to date sales. But this isnt the same 

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.