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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
darshaningale
Resolver II
Resolver II

How to Filter table data based on USERELATIONSHIP

I have table A and table B. There is no active relationship between both of them.

I have created two measures in Table A based on USERELATIONSHIP between Table A & Table B.

I have put both the measures in one column chart graph.

If i select measureX on graph it should filter Table B using relationship1. If i select measureY on graph it should filter Table B using relationship2. I want to show the filtered data of table B in a table visual.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @darshaningale,

I think you are misunderstood with USERELATIONSHIP functions.

Power bi not able to dynamically change the active relationship based on selection. (this function does not change the active relationship)
It will change the DAX expressions filters to use an inactive relationship key to filter on your expression and not affect the current relationship and filter interaction of visuals.
Regards,

Xiaoxin Sheng

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @darshaningale,

I think you are misunderstood with USERELATIONSHIP functions.

Power bi not able to dynamically change the active relationship based on selection. (this function does not change the active relationship)
It will change the DAX expressions filters to use an inactive relationship key to filter on your expression and not affect the current relationship and filter interaction of visuals.
Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@darshaningale , the measure should use userelationship on the columns inactive joins

 

refer my blog -https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

or

 

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

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

The measures are already using USERELATIONSHIP while calculating.

Measures are working fine. The data is not getting filtered according to the measure selected.

@darshaningale , No very clear. If you click on table and other should filter(others) using this relation, that that others visual should also have measures using this relation

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Not very clear @darshaningale ...can you share a file with sensitive data removed if possible to understand this better ?

@jaideepnema ,

Lets say TableA = Sprint Names & Table B = Bugs information.

I have created two measures Open Bugs & Closed Bugs and i am showing that in a column chart.

Now I can count the number of Open bugs from Table B. However when i click the measure value in the chart it should only show Open bugs from Table B.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.