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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Combine 2 Tables - Child Table as daily updated data and need to Add, Update the Records to master

Hi All,

  Was trying to combine 2 Excel Tables 

  Master Table: 

  

IssueNameCreatedUpdatedprioritystatus creatorassigneeprojectname
A-23277Auto 12021-09-29T08:26:06.111+13002021-09-29T08:26:18.464+13001DoneKVKVASP
A-23278Auto 22021-09-29T08:25:29.477+13002021-09-29T08:25:38.682+13002DoneKNKNASP
A-23279Auto 32021-09-29T07:38:21.173+13002021-09-29T07:38:30.038+13003To DoKVKVGP
A-23280Auto 42021-09-29T06:56:57.444+13002021-09-29T09:15:15.002+13004To DoKNKNGP
A-23281Auto 52021-09-29T06:56:42.389+13002021-09-29T06:58:07.022+13005DoneKVKVGP

 

  Child Table : 

 

IssueNameCreatedUpdatedprioritystatus creatorassigneeprojectname
A-23279Auto 32021-09-30T07:38:21.173+13002021-09-29T07:38:30.038+13003To DoKVKVGP
A-23280Auto 42021-09-29T06:56:57.444+13002021-09-30T09:15:15.002+13004To DoKNKNGP
A-23282Auto 62021-09-29T06:56:42.389+13002021-09-29T06:58:07.022+13006DoneKVKVGP

 

The data for the Child Table keep on changing with New Records or Updated Records based on Issue .

 

Have Tried the option of Merge Query , but it's not getting the right data.

 

The Final Output need to New Tables with Data 

 

IssueNameCreatedUpdatedprioritystatus creatorassigneeprojectname
A-23277Auto 12021-09-29T08:26:06.111+13002021-09-29T08:26:18.464+13001DoneKVKVASP
A-23278Auto 22021-09-29T08:25:29.477+13002021-09-29T08:25:38.682+13002DoneKNKNASP
A-23279Auto 32021-09-30T07:38:21.173+13002021-09-29T07:38:30.038+13003To DoKVKVGP
A-23280Auto 42021-09-29T06:56:57.444+13002021-09-30T09:15:15.002+13004To DoKNKNGP
A-23281Auto 52021-09-29T06:56:42.389+13002021-09-29T06:58:07.022+13005DoneKVKVGP
A-23282Auto 62021-09-29T06:56:42.389+13002021-09-29T06:58:07.022+13006DoneKVKVGP

 

The Output contains Update of Records and Addition of Records (Highlighted in Bold)

 

 

Regards,

Venkat

 

 

 

 

 

 

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

 

You may use Append not Merge:

Eyelyn9_0-1633586366161.png

Then remove duplicates:

Eyelyn9_1-1633586424978.png

 

Below is the final output:

Eyelyn9_2-1633586520187.png

 

Best Regards,
Eyelyn Qin
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

2 REPLIES 2
v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

 

You may use Append not Merge:

Eyelyn9_0-1633586366161.png

Then remove duplicates:

Eyelyn9_1-1633586424978.png

 

Below is the final output:

Eyelyn9_2-1633586520187.png

 

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

lbendlin
Super User
Super User

This is the common Substitution pattern

let
    #"Final Output" = Child &  Table.SelectRows(Master, each not (List.Contains(Child[Issue],[Issue]))),
    #"Sorted Rows" = Table.Sort(#"Final Output",{{"Issue", Order.Ascending}})
in
    #"Sorted Rows"

see attached.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors