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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
FlorianLOCHT
New Member

Merging 2 tables if tuples dosn't exists

Hello,

 

I am quite a newbie at Power Bi and I am trying something weird 😅

 

I have 2 tables, first with backup report and Second one with backup infos (each day backup need to run)

 

Table1

BackupNameDays
Name1Monday
Name1Tuesday
Name2Monday

 

Table2

BackupNameMondayTuesdayWednesday
Name1TrueTrueTrue
Name2TrueFalseFalse

 

I am loking for something to know that backup Name1 don't run on wednesday because there is a "True" is colums

And this for every backupName exist in Table2 that I can't find in Table1

 

Hope I am clear enough

 

Thank's

1 ACCEPTED SOLUTION
marcelsmaglhaes
Super User
Super User

Hey @FlorianLOCHT !

Take a look into the images bellow and follow the steps. If it helps, please mark this post as solved! 
Regards,
Marcel

STEPS
1. First of all, you need to unpivoted your table 2 

marcelsmaglhaes_0-1692716238934.png

marcelsmaglhaes_1-1692716254215.png

2. After that, you can use the Mergie Queries option

marcelsmaglhaes_2-1692716300503.png

 

3. Try change the Join Kind. I choose the Rigth Outer Join to bring all data from table 2 and just the data thats matching from table 1.

marcelsmaglhaes_3-1692716389517.png


4. Now, expanded the column table choosing the columns that you can bring on your table.

marcelsmaglhaes_4-1692716466011.png

 

5. The result is a table that show to me the values that exists in table two but not in table 1. 

marcelsmaglhaes_5-1692716526953.png

 


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!
Imagem de fundo



View solution in original post

1 REPLY 1
marcelsmaglhaes
Super User
Super User

Hey @FlorianLOCHT !

Take a look into the images bellow and follow the steps. If it helps, please mark this post as solved! 
Regards,
Marcel

STEPS
1. First of all, you need to unpivoted your table 2 

marcelsmaglhaes_0-1692716238934.png

marcelsmaglhaes_1-1692716254215.png

2. After that, you can use the Mergie Queries option

marcelsmaglhaes_2-1692716300503.png

 

3. Try change the Join Kind. I choose the Rigth Outer Join to bring all data from table 2 and just the data thats matching from table 1.

marcelsmaglhaes_3-1692716389517.png


4. Now, expanded the column table choosing the columns that you can bring on your table.

marcelsmaglhaes_4-1692716466011.png

 

5. The result is a table that show to me the values that exists in table two but not in table 1. 

marcelsmaglhaes_5-1692716526953.png

 


Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!
Imagem de fundo



Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.