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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Ammar-Jaradat
Frequent Visitor

Adding a column with values from different tables based on a condition

Hello There!

 

I have a problem and trying to figure out a solution for it.

I have a set of data ( From different columns) that i want to show in one table, but conditional based on a single Value which is Staff name.

 

For example, i have the following data set : 

 

1- Closed Items-- Table 1,Contains all Results for all team members per day

2- Completion %--- Table 2,Contains all Results for all team members per day

3- Satisfaction%-- Table 3, Contains all Results for all team members per day

 

What i need is to ceate a new table similar to the below

 

Staff NameClosed ItemsAVG Completion %AVG Satisfaction%
John1095%94.1%
Mark2080%93.7%
Marie30100%98.3%

 

Appreciate if you can assist me with this one 

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @Ammar-Jaradat ,

 

You need to create a STAR SCHEMA data model.

 

1) Create an employee dimension table - a table that contains a unique list of all employees (names and/or ID numbers).

2) Apply all your tables to the data model and make the following relationships:

- dimEmployee[E'ee Name or ID] ONE : MANY closedItems[E'ee Name or ID]

- dimEmployee[E'ee Name or ID] ONE : MANY completionPct[E'ee Name or ID]

- dimEmployee[E'ee Name or ID] ONE : MANY satisfactionPct[E'ee Name or ID]

3) Use dimEmploye[Name] in your visuals and bring in the fact metrics from each of your fact tables.

 

Reference:

https://docs.microsoft.com/en-us/power-bi/guidance/star-schema 

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

1 REPLY 1
BA_Pete
Super User
Super User

Hi @Ammar-Jaradat ,

 

You need to create a STAR SCHEMA data model.

 

1) Create an employee dimension table - a table that contains a unique list of all employees (names and/or ID numbers).

2) Apply all your tables to the data model and make the following relationships:

- dimEmployee[E'ee Name or ID] ONE : MANY closedItems[E'ee Name or ID]

- dimEmployee[E'ee Name or ID] ONE : MANY completionPct[E'ee Name or ID]

- dimEmployee[E'ee Name or ID] ONE : MANY satisfactionPct[E'ee Name or ID]

3) Use dimEmploye[Name] in your visuals and bring in the fact metrics from each of your fact tables.

 

Reference:

https://docs.microsoft.com/en-us/power-bi/guidance/star-schema 

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.