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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Jean-Mi64
Helper I
Helper I

relation entre tables

Bonjour

J’ai créé une relation entre une table 1 et une table 2

Elle est faite sur le champ « PROCEDE »

Sur les 2 tables, j’ai également le champ « OPERATION » en commun.

Mais quand je filtre sur un numéro de procédé et une opération de la table 1, les données liées à ce même procédé et cette même opération sur la table 2 ne sont pas récupérées. Je récupère les données de l’ensemble du procédé. Le filtre des données ne va pas jusqu’à l’opération

Exemple de visuel :

Tableau « Requete1 »

Tableau « Requete1 »

Tableau « Requete1 »

Tableau « FONCTIONNEMENT »

Numéro

Procédé

Opération

Temps de procédé

20000

Réf. Réf. Réf. P2000

Moulage

0.1

20000

Réf. Réf. Réf. P2000

Moulage

0.4

20000

Réf. Réf. Réf. P2000

Moulage

1.0

On ne devrait avoir qu’une ligne (en vert)

Sur la table « OPERATION » on trouve :

Tableau « FONCTIONNEMENT

Tableau « FONCTIONNEMENT

Tableau « FONCTIONNEMENT »

Procédé

Opération

Temps de procédé

Réf. Réf. Réf. P2000

Moulage

0.1

Réf. Réf. Réf. P2000

Finition

0.4

Réf. Réf. Réf. P2000

Conditionnement

1.0

 

1 ACCEPTED SOLUTION

Hi @Jean-Mi64 ,

 

We can create a measure.

Temps de procédé  from table 2 =
CALCULATE (
    SUM ( 'table 2'[Temps de procédé] ),
    FILTER (
        ALLSELECTED ( 'table 2' ),
        'table 2'[Opération]
            IN VALUES ( 'table 1'[Opération] )
                && 'table 2'[Procédé] IN VALUES ( 'table 1'[Procédé] )
    )
)

Then the result is as follows.

vtangjiemsft_0-1708328476364.png

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

6 REPLIES 6
Jean-Mi64
Helper I
Helper I

Bonjour

Voici un exemple de rapport :

https://drive.google.com/file/d/1Sn8FKphcGqkOrYSZFKAduc3w1NKqMPbN/view?usp=sharing

 

Voici d’où proviennent les données

 

JeanMi64_0-1707808620202.png

 

 

v-tangjie-msft
Community Support
Community Support

Hi @Jean-Mi64 ,

 

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

(1) This is my test data. 

(2) We can create a measure. 

Flag = IF(MAX('table 2'[Opération]) in VALUES('table 1'[Opération]),1,0) 

(3) Place [Flag=1] on the visual object filter and then the result is as follows.

vtangjiemsft_0-1707358918035.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

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. 

Merci pour ce retour
Voici d’où proviennent les données

 

JeanMi64_0-1707386227584.png

Voici un exemple de rapport :

https://drive.google.com/file/d/1Sn8FKphcGqkOrYSZFKAduc3w1NKqMPbN/view?usp=sharing

 

Hi @Jean-Mi64 ,

 

We can create a measure.

Temps de procédé  from table 2 =
CALCULATE (
    SUM ( 'table 2'[Temps de procédé] ),
    FILTER (
        ALLSELECTED ( 'table 2' ),
        'table 2'[Opération]
            IN VALUES ( 'table 1'[Opération] )
                && 'table 2'[Procédé] IN VALUES ( 'table 1'[Procédé] )
    )
)

Then the result is as follows.

vtangjiemsft_0-1708328476364.png

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. 

C’est ok

Merci beaucoup

Daniel29195
Super User
Super User

salut @Jean-Mi64 

 

si possible, si vous pouvez partager votre fichier pour que je puisse jete un oeil . ( vous pouvez le partager via dropbox ou googledrive ) et partager le lien ici . 

 

 

 

 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors