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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
drewP76
Frequent Visitor

Model Help? List with many employee columns

Hello guru's,

 

I know I have done something wrong and am looking for advice.  I'm guessing with the proper design both issues can be resolved.  I currently have two problems:

 

1) When there are two employees in a [Project List] column, the report visualization value is shown as blank.

2) I have copied the [Employee List] query multiple times so I have 3 in total so I can create 3 different relationships (one for each column talked about below).  I know this is bad form, data set is very small and is proof of concept.

 

Simplifying... I have two tables (source is sharepoint online):

1) [Projects]

2) [Employees]

 

In [Projects] I have 3 columns:

1) [Projects] \ Manager

2) [Projects] \ Lead(s)  - can have many values

3) [Projects] \ Tech(s)  - can have many values

These Leads and Techs columns contain a comma seperated list of employee ID's (a whole #) that link up with the [Employees] table where their name is stored.

 

On my report, I'd like to display all employee names for each project.  Open to different methods.

 

[Projects] Table

Project NameManagerLeadsTechs
Install Windows 3.1     1    23,4

 

Employees Table

Employee IDName
1Bill Gates
2Bill Gates Jr
3Golden Gates
4Triomphe Gates

 

I've watched this youtube video but can't quite see how to apply it in my scenario:

Handling MULTIPLE fact tables in Power BI - YouTube

 

 

Thanks, any advice is really appreciated.

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

HI @drewP76,

First, I do not so recommend you to merge multiple id in the same field. (power bi not able to recognize and mapping it with detailed records)

I'd like to suggest you create a expand table to expand the project table to project, attribute and value. (project id, role type, employee id) Then you can use this to link project table and fact table employees.

For multiple fact table relationships, perhaps you can take a look at the following document to design the star schema relationship that power bi works effectively.

Understand star schema and the importance for Power BI - Power BI | Microsoft Docs

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @drewP76,

First, I do not so recommend you to merge multiple id in the same field. (power bi not able to recognize and mapping it with detailed records)

I'd like to suggest you create a expand table to expand the project table to project, attribute and value. (project id, role type, employee id) Then you can use this to link project table and fact table employees.

For multiple fact table relationships, perhaps you can take a look at the following document to design the star schema relationship that power bi works effectively.

Understand star schema and the importance for Power BI - Power BI | Microsoft Docs

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.