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
Jordan97270
New Member

Connecting 4 tables

PresentationPresentationFirst stepFirst stepSecond stepSecond stepConnectingConnecting

 

In the first picture you can see my dataviz. In the second, you can see in red my filter, and in blue what change (that I want). But in the last dataviz picture you can see no connection with the bottom table. Can I have help please?

 

id_pelotonlibelle_pelotonid_commandant
5Bravo6
6Explorer2
7Eclair2
8Mercenaire5
9Bouteille

5

 

id_commandantnom
1Gui
2Bernard
3Jean
4Arnaud
5Jul
6Carl

 

id_pelotonId_commandantisDeleteNb_mission
1615
2416
3111
4216
5605
6200
7209
8500
9509

 

id_pelotonid_commandantid_secour
561

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Jordan97270 ,

 

Please try the userelationship() function to activate the inactive relationship.

like this:

Measure 3 = CALCULATE(MAX('Table (2)'[nom]),USERELATIONSHIP('Table (3)'[id_peloton],'Table'[id_peloton]))

Best Regards,

Neeko Tang

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

4 REPLIES 4
Anonymous
Not applicable

Hi @Jordan97270 ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) My model relationship is as follows:

vtangjiemsft_0-1678072448675.png

(3) Then the result is as follows.

vtangjiemsft_1-1678072510436.png

Please refer to the following document for more information.

Model relationships in Power BI Desktop - Power BI | Microsoft Learn

Understand star schema and the importance for Power BI - Power BI | Microsoft Learn

Active vs inactive relationship guidance - Power BI | Microsoft Learn

 

Best Regards,

Neeko Tang

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

Hi @Anonymous ,

Thanks for your help.

But with your way the top table is not correct. Because delete peloton doesn't connect to a commandant.

 

 

Anonymous
Not applicable

Hi @Jordan97270 ,

 

Please try the userelationship() function to activate the inactive relationship.

like this:

Measure 3 = CALCULATE(MAX('Table (2)'[nom]),USERELATIONSHIP('Table (3)'[id_peloton],'Table'[id_peloton]))

Best Regards,

Neeko Tang

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

 

Thanks a lot

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.