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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lherbert501
Post Partisan
Post Partisan

Inactive relationships both cross filter

 

Hi,

 

I have a simple layout below with a fact stock and fact sales. Because of the items relationship which is both on the cross filter, it wont allow me to create another relationship with the country table which i need to use as the slicer value.

 

Is there a way around this? Could I use something to make it active?

 

Thanks

 

lherbert501_0-1697109796631.png

 

2 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @lherbert501 
You can use, userelationship function inside calculations.

Please refer to the linked article << scenario 2

https://www.vivran.in/post/understanding-ambiguity-in-power-bi-data-model

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

You need to create a "country" table which will be a kind of bridge table.
Exactly like on your schema in the question.
Please refer to @amitchandak  tutorial :

https://www.youtube.com/watch?v=Bkf35Roman8

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

5 REPLIES 5
Ritaf1983
Super User
Super User

Hi @lherbert501 
You can use, userelationship function inside calculations.

Please refer to the linked article << scenario 2

https://www.vivran.in/post/understanding-ambiguity-in-power-bi-data-model

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi @Ritaf1983 

 

Thanks so much for replying.

 

I think I understand the userelationship in a formula or measure context, but I simply want to use one field out of my country table to use in a slicer.

 

Does that make sense?

 

Thanks

 

You need to create a "country" table which will be a kind of bridge table.
Exactly like on your schema in the question.
Please refer to @amitchandak  tutorial :

https://www.youtube.com/watch?v=Bkf35Roman8

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi @Ritaf1983 

 

Sorry - I should of been more clear. The country table is just two distinct rows of two countries wrote out that exist on the stock and sales table and already acts as a sort of bridge. This is still saying indirect 

Hi @lherbert501 

I'm not sure I'm getting the problem.

Please share a link to dummy pbix to work with...

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.