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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
amanda_wahlig
Frequent Visitor

Creating Calculated Column Based on Multiple Tables and Filtering

I have multiple tables tracking the work of our staff (completely different types of work items means we can't use the same table to track it all) - each work item is assigned to a staffer, so obviously there are many rows with the same staffer's name . Not every staffer is in every table.

 

I have a report where I have visuals from the different tables, and I would like to have a slicer where I can filter all the visuals based on a staffer's name.

 

I'm pretty sure that the best way to do this is to combine the staffer name columns from each table into a new table, then filter out the repeats (or is that step even necessary)?

 

I welcome any tips, suggestions, or code.

2 ACCEPTED SOLUTIONS
Idrissshatila
Super User
Super User

hello @amanda_wahlig ,

 

yes, have a dimension table that have the distinct staff names and link it to all the tables with the records.

 

then you can see the data from all tables with this staff name from the dimension table.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

audreygerred
Super User
Super User

Hello! Ideally you always want to model to a star schema (fact and dimensions). The employee table would be a dimension table in this case and the joins to the fact tables allow the fact tables to be used together in a visual through fields from the dimension. Here is a blog I wrote about star schema: http://powerbiwithme.com/2023/07/30/the-star-schema-edition/ 





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

Proud to be a Super User!





View solution in original post

4 REPLIES 4
amanda_wahlig
Frequent Visitor

I was more looking for tips on creating that dimension table with all the names, but I appreciate it. I wound up extracting the columns with attorney names into new tables and merging queries, then removing duplicates.

amanda_wahlig
Frequent Visitor

I was mostly looking for tips on how to create the dimension table. I wound up referencing the needed columns and appending them into a new table, then removing duplicates. That way we don't have to manually change the reference table.

audreygerred
Super User
Super User

Hello! Ideally you always want to model to a star schema (fact and dimensions). The employee table would be a dimension table in this case and the joins to the fact tables allow the fact tables to be used together in a visual through fields from the dimension. Here is a blog I wrote about star schema: http://powerbiwithme.com/2023/07/30/the-star-schema-edition/ 





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

Proud to be a Super User!





Idrissshatila
Super User
Super User

hello @amanda_wahlig ,

 

yes, have a dimension table that have the distinct staff names and link it to all the tables with the records.

 

then you can see the data from all tables with this staff name from the dimension table.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.