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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bapt69
Helper I
Helper I

Multiple relationships - Table filtered with inactive relation

Hey,

I got one problem with the relationships...

 

I found this post but it's not solved :

https://community.powerbi.com/t5/Desktop/Multiple-Links-relationships/m-p/2372992#M853396

 

One table "ETABLISSEMENT" related to "VISITES" (active relation) and to "CUSTOMERS" (inactive relation)

With "VISITE", this is the "Etablissement" where the customer were to play

With "CUSTOMERS", this is the "Etablissement" where the customer were been registered

We want the ratio nb visite/registration -> this is good. I get it :

 

 

Taux_fidelisation_etablissement = DIVIDE(
    CALCULATE(
        DISTINCTCOUNT(dmt_visite[client_id]),         
        USERELATIONSHIP(dmt_client[etablissement_creation_id],d_etablissement[etablissement_id]),
            USERELATIONSHIP(dmt_client[client_id],dmt_visite[client_id]),
            dmt_visite[visite_active]=1,
            dmt_visite[Fidelisation]=1),
calculate(count(dmt_client[date_adhesion_club]),dmt_client[Adhérent]="Adhérent",USERELATIONSHIP(dmt_client[etablissement_creation_id],d_etablissement[etablissement_id])))

 

Anyway, to check it out, I would like to visualize the datas :

2022-12-14_09h49_11.jpg

The problem :

When i put in a "Etablissement" in the right table, I only see the customers who visited this etablissement, not all the visits.

Summary : The first table (on the very left) have to be filtered by the active relation and the center table have to be filtered by the inactive relation.

To be clearer :

For only one customer, it's ok

Exemple1.jpg

When I click on a "Etablissements" (table on the very right), it's not ok anymore lol (I would like to see the same lines to calculate the 100%)

Exemple2.jpg

2 REPLIES 2
v-jialluo-msft
Community Support
Community Support

Hi  @bapt69 ,

 

When a table has multiple relationships, the default is to filter the data by active relationships, and if you need to use inactive relationships, you need to create additional measures to display.
Upload sample data and expected output to further troubleshoot the issue.

How to provide sample data in the Power BI Forum - Microsoft Power BI Community

 

Best Regards,
Gallen Luo

Sorry,

I did a second "Etablissement" table. Only for this case/visual.

So, it's working but it's a workaround. I wondered if there is a standard function...

 

There is a table with the customers and registrationDate and RegistrationCity,

a table with the visit (venue in the city) with VenueDate and VenueCity.

And I did a ratio with all the venue (any city) divided by the nb of registration by city.

 

And I would like 2 tables : one with the registrations and one with the venues (any cities but filtered by the registration city)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors