cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Turf03
Helper II
Helper II

Relationship not linking data correctly

Hey all!

 

Im trying to create a matrix showing employee performance and the organization they work for. The employee performance table just has the employee name, sales performance and date. The organization table has just the employee name and their organization. When I create the matrix summarizing their data, the employee is showing data for each organization even if they aren't in it. There is a Many to One relationship on the employee name in each table.

 

Is there any suggestions on how to link the two tables correctly and only show data for the employee for the segment they actually belong to? Im assuming there is something relating to the date data. 

 

1 ACCEPTED SOLUTION
parry2k
Super User III
Super User III

@Turf03 solution attached

 

Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.






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

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

4 REPLIES 4
parry2k
Super User III
Super User III

@Turf03 solution attached

 

Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.






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

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

@parry2k thank you for the example. I actually figured out the solution. I used the names off the Department table instead of off the performance tables and it worked as expected. 

Turf03
Helper II
Helper II

Below is an example of each table and Matrix results.

 

The one to many relationship is linked by Employee field

 

Employee Sales table

DateEmployeeSales
01/01/2021Smith, John100
01/02/2021Doe, Jane50

 

Employee Department Table

EmployeeDepartment
Smith, JohnElectronics
Doe, JaneAthletics

 

Matrix results (which are incorrect)

MonthEmployeeDepartmentSales
JanuarySmith, JohnElectronics100
JanuarySmith, John Athletics100
JanuaryDoe, JaneElectronics50
JanuaryDoe, JaneAthletics50
parry2k
Super User III
Super User III

@Turf03 I assume the organization table is on one side of the relationship? Correct?  Can you post some sample data. From which tables you are using columns in the matrix visual? 






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

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are You Ready?

Test your skills now with the Cloud Skills Challenge.

Top Solution Authors