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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.