cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pieter77788
Regular Visitor

Relationship not working

Hi,

 

I have 4 payroll files that I want to combine. I uploaded each table separately, then in Power Query I referenced each table and removed other columns to only leave payroll number and name. I then appended these reference tables and removed all duplicates to get a single table with payroll number and name that dynamically updates as I add data to each of the 4 original tables.

 

However, when I then link this new table to the other 4 tables on the payroll number field the relationship seems fine - no error message, nor dotted lines. All seems fine up to this point.

 

When I then set up a pivot table (in Excel - power pivot) and use the new table's payroll number and name fields and try to drop in information from the other tables it tells me it cannot detect any relationships. I have done the process before of referencing other tables to create a single unique reference table and it all worked fine. But cannot find the issue in this instance. Appreciate the help!

 

Appreciate it is a power pivot question, but as that follows the same principles as power bi I am hoping you can help with guidance.

 

thanks.

Pieter

2 REPLIES 2
pieter77788
Regular Visitor

Hi, 

 

the following two visuals show how I imported my excel files and edited them to load into power pivot. The four tables with "Names" at the end is where I referenced only the payroll number and name to then append them in the Employee Details table and removed any duplicate entries - the Salary Report file comes from a payroll provider and the other three files with "Staff" at the end is our internal workings.

 

pieter77788_0-1638113780471.png

 

pieter77788_0-1638114339400.png

 

 

In Power Pivot I created the following relationships (red boxes were linked) and then the pivot visual is where you can see that the relationship does not seem to work and I cannot work out why.

 

pieter77788_2-1638114078500.png

Any help would be most appreciated!

Pieter

StefanoGrimaldi
Super User
Super User

I recommed you to give out some example or picture of how its set up and example of the table, also read the first post on the forum about getting quicker answer, we need a little more detail here to be able to pinpoint the solution





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors