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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Help getting data from two tables

Good day, I have looked everywhere and don't know how to do it

I have two tables one from absense called Table 1 

NameIPDate (mm/dd/yyyy)
April Day168074912/27/2022
April Day16807491/4/2023
April Day16807491/5/2023
April Day16807491/12/2023
April Day16807491/13/2023
April Day16807491/19/2023
April Day16807491/27/2023
Edward Patterson187732111/8/2022
Edward Patterson187732111/9/2022
Edward Patterson187732111/10/2022

 

And the other one has the medical certificates

BeginingEndIP
3/16/20233/16/20232337266
3/20/20233/21/20232782871
3/21/20233/22/20232264595
3/22/20233/23/20232250748
3/22/20233/26/20232243652
3/22/20233/22/20232298473
10/19/202210/19/20222259796
10/27/202211/9/20222259796
11/10/202211/19/2022

2259796

 

I want a table that checks if they sent a medical certificate with a column that says proof 

Don't know of it makes sense

But merging doesn't work for mw because not all the data is merging, don't know how to do a conditional column with data from 2 tables.

2 REPLIES 2
Anonymous
Not applicable

Yes, I could merge by ID but the information is by year and they are various entries of ID in both tables so when I merge information the data doesn't match

For example:

if I merge it looks like this:

NameIPDate Begining of certEnd of cert
Charlie Smith22507481/22/20233/22/233/23/23
Charlie Smith22507481/23/20233/22/233/23/23
Charlie Smith22507481/24/20233/22/233/23/23
Charlie Smith22507482/11/20233/22/233/23/23
Charlie Smith 22507482/12/20233/22/233/23/23

 

It doesn't match. 

I think if I can find a way to change the second table from this:

BeginingEndIP
3/16/20233/16/20232337266
3/20/20233/21/20232782871
3/21/20233/22/20232264595
3/22/20233/23/20232250748
3/22/20233/26/20232243652
3/22/20233/22/20232298473
10/19/202210/19/20222259796
10/27/202211/9/20222259796
11/10/202211/19/2022

2259796

 

to something like this, in the way that it gives me a new column from each day with a certificate:

Date certIP
3/16/232337266
3/20/232782871
3/21/232782871
3/21/232264595
3/22/232264595

then i can merge both tables by IP and Date and be done with it because it would be one entry for each day.

 

But don't know

collinq
Super User
Super User

Hi @Anonymous ,

 

My first question is as to what is the column that you are merging on?  I would guess the key is the ID?  If so, you would do a merge on the ID field, and then you expand the second table field list.




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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