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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Modelling question

Bonjour,

 

J'ai un problème dans la modélisation de mon jeu de données.

J'ai un groupe de département:

 

UN M

B

E

ER

F

RD

RH

S

SG

SGR

SR

 

"Regroupement" qui sont:

 

MODE => E + ER + SR

FINANCE => RH + F

AGRO => AM + B

IT => S + SR

 

J'ajoute donc une autre colonne à la table des départements, en écrivant une formule dax:

 

 

Regroupement = IF ( 
Departement [Departement Nom Abbré] = "E" || Departement [Departement Nom Abbré] = "ER" || Departement [Departement Nom Abbré] = "SR"; "MODE";
IF (Departement [Departement Nom Abbré ] = "A + M" || Département [Département Nom Abbré] = "B"; "AGRO";
IF (Département [Département Nom Abbré] = "RH" || Département [Département Nom Abbré] = "F" || Departement [Departement Nom Abbré] = "F + RH"; "GESTION";
IF (Departement [Departement Nom Abbré] = "S" || Departement [Departement Nom Abbré] = "SR"; "IT";
Departement [Departement Nom Abbré]))))

 

 

1.PNG

 

Mais je ne peux pas obtenir SR en MODE et aussi en informatique .

 

Lundi mais est:

Lorsque je sélectionne un regroupement dans la zone 1, il apparaît au niveau inférieur dans la zone 2. 

2.PNG

 

Par exemple:

3.PNG

 

Je veux avoir les deux S et SR, quand je choisis l'informatique, mais SR est déjà pris par MODE.

 

5.PNG

 

Apparemment, cette façon ne fonctionne pas, puis-je utiliser en utilisant une formule Dax? Si c'est le cas, il serait très utile que vous m'éclairiez.

 

Merci beaucoup !

1 ACCEPTED SOLUTION

Hi @Anonymous ,

Actually, in your scenario, you just need to create a "Regroupement" table like below:

PBIDesktop_5HBhAWn9Yl.png

The create a many-to-many relationship between these two tables:

PBIDesktop_OZbxULHepj.png

The result will like below:

xJpfjfhTWP.gif

Best Regards,

Teige

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hello there,

 

I have a problem in modelling my dataset.

 

I have a group of departement :

 

AM

B

E

ER

F

RD

RH

S

SG

SGR

SR

 

Now I want to make four group in a higer level, I called them "Regroupement" which are:

 

MODE => E+ER+SR

FINANCE => RH+F

AGRO => AM+B

IT => S+SR

 

So I add another column in the departement table, by writing a dax formule:

 

 

Regroupement = IF(
Departement[Departement Nom Abbré]="E"||Departement[Departement Nom Abbré]="ER"||Departement[Departement Nom Abbré]="SR";"MODE";
IF(Departement[Departement Nom Abbré]="A+M"||Departement[Departement Nom Abbré]="B";"AGRO";
IF(Departement[Departement Nom Abbré]="RH"||Departement[Departement Nom Abbré]="F"||Departement[Departement Nom Abbré]="F+RH";"GESTION";
IF(Departement[Departement Nom Abbré]="S"||Departement[Departement Nom Abbré]="SR";"IT";
Departement[Departement Nom Abbré]))))

 

 

1.PNG

 

But I can't get SR in MODE and also in IT.

 

My goal is :

When I select a regroupement in zone 1, the departement in the lower level in zone 2 will show. 

2.PNG

 

For exemple:

3.PNG

 

I want to have both S ans SR , when I choose IT, but SR is already taken by MODE.

 

5.PNG

 

Apparently, this way doesn't work, however can I realize by using a Dax formule? If so, it would be very helpful that you can enlighten me.

 

Thank you very much !

Hi @Anonymous ,

Actually, in your scenario, you just need to create a "Regroupement" table like below:

PBIDesktop_5HBhAWn9Yl.png

The create a many-to-many relationship between these two tables:

PBIDesktop_OZbxULHepj.png

The result will like below:

xJpfjfhTWP.gif

Best Regards,

Teige

Anonymous
Not applicable

Hi @TeigeGao ,

 

It's a prefect answer,

Thank you.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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