cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Akshaya Established Member
Established Member

Appending query error

I have 2 tables:

 

Monthly:

 

Date                PERNR     Region

12/31/2018         1               X

 

and Daily:

 

 Date                      PERNR      Region

 

1/17/2019                  1                  X

 

 

I am appending these 2 tables so that the Daily Table looks like:

 

Date                     PERNR         Region

 

1/17/2018                1                 X

12/31/2018              1                 X

 

But when I load this table to the front end, it throws the following error

 

OAT Duplicate error.PNG

 

I dont understand why this is causing a problem as I have similar projects in the same pattern (That is multiple PERNR Records and same type of relation between the tables) but it has not thrown this error. Any suggestions?

 

Thanks!

 

4 REPLIES 4
rajendran Super Contributor
Super Contributor

Re: Appending query error

Hi @Akshaya

 

Looks like your daily table is at the "One" end of One to Many relationship in your model. So, when you append rows to the daily table , which makes the joining column duplicated values, which means the relation is no more "Many to One", hence the existing relationship fails. This append makes the relationship as Many to Many , which needs to be elminated by introducing a relationship/ bridge table.

 

Thanks

Raj

Microsoft v-cherch-msft
Microsoft

Re: Appending query error

Hi @Akshaya

 

Does that make sense? If so, kindly mark the answer as a solution to close the case.

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Akshaya Established Member
Established Member

Re: Appending query error

@rajendran

 

Hi,

 

But as i said, Ihave other reports with the exact relationships. And I have another table that looks exactly similar:

 

Ex: Monthly load in Dec has:

 

PERNR    JOB             Date

1               X                12-31-2018

 

Then, during jan this employee is still present in the company and the table then looks as foloows:

 

 

PERNR    JOB             Date

1               X                12-31-2018

2               X                 1-31-2018

 

But this does not give me such an error

Highlighted
rajendran Super Contributor
Super Contributor

Re: Appending query error

Hi @Akshaya

 

How abt the data in the other end table? Does it has duplicate for PERNR '1'? Many to Many is supported , it should be solved .

 

Either you can provide the full sample set of records for both the tables involved in the join or you can upload sample PBI file for further help on this.

 

Thanks

Raj

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors