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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
alisaleh
Helper I
Helper I

Filtering throug inactive indirect relationship

I have the following tables with the following relationship A<...*:*...>B, B-*:1->C where C is some lookup table. Lets say in table A there is Status field called IsCompleted which is used in BarChart like this to show total iscomplete true vs false.

 

alisaleh_1-1648888348928.png

 

Lets say I have drop down slicer for the lookup table C. The problem I have given indirect relationship and given is that when I select a value from the slicer to filter by, the tolals in the bar chart doesnt change. I tried using USERELATIONSHIP and ALLSELECTED but nothing worked! how can I get this working? Thanks alot.

 

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @alisaleh ,

 

I create a sample to have a test, and USERELATIONSHIP should work well.

Table A:

RicoZhou_0-1649146522570.png

Table B:

RicoZhou_1-1649146529037.png

Table C:

RicoZhou_5-1649147122448.png

Relationship:

RicoZhou_3-1649147090703.png

Measure = 
CALCULATE(SUM('Table A'[Value]),USERELATIONSHIP('Table A'[Category],'Table B'[Category]), USERELATIONSHIP('Table B'[Category],'Table C'[Category]))

Result is as below.

RicoZhou_4-1649147104844.png

If this reply still couldn't help you solve your problem, please share a sample file with me. And show me a screenshot with the result you want. This will make me easier to find the solution.

 

Best Regards,
Rico Zhou

 

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

 

View solution in original post

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @alisaleh ,

 

I create a sample to have a test, and USERELATIONSHIP should work well.

Table A:

RicoZhou_0-1649146522570.png

Table B:

RicoZhou_1-1649146529037.png

Table C:

RicoZhou_5-1649147122448.png

Relationship:

RicoZhou_3-1649147090703.png

Measure = 
CALCULATE(SUM('Table A'[Value]),USERELATIONSHIP('Table A'[Category],'Table B'[Category]), USERELATIONSHIP('Table B'[Category],'Table C'[Category]))

Result is as below.

RicoZhou_4-1649147104844.png

If this reply still couldn't help you solve your problem, please share a sample file with me. And show me a screenshot with the result you want. This will make me easier to find the solution.

 

Best Regards,
Rico Zhou

 

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

 

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.