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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Model building problem

Hi all,

 

I am building a data model like below. And what I want is using this model to create a matrix table including, Column: job Description, Name(from Inspection team member table);  Value: Hour(from employee transaction table ). The hour I get is total rather than every employee's hour. Please help what should I do, should I change the model, or write a new measure?

 

Thank you in advance!!!

 

babyjb123_0-1659108235230.png

babyjb123_1-1659108279643.png

 

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

Hi, @Anonymous 

There is a problem with the filter direction between these tables.

You may need to change the relationship between 'Date' and 'Employee Transaction' to inactive relationship, and change the relationship between 'Inspection Team Memver' and 'Employee Master' to a one-to-many bidirectional relationship.

 

Best Regards,
Community Support Team _ Eason

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

There is a problem with the filter direction between these tables.

You may need to change the relationship between 'Date' and 'Employee Transaction' to inactive relationship, and change the relationship between 'Inspection Team Memver' and 'Employee Master' to a one-to-many bidirectional relationship.

 

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@Anonymous . Common Job Table is missing. You have to create a job table with common job columns

 

Distinct(union(

Summarize(Employee, Employee[Job ID], Employee[Job Name]),

Summarize(team, team[Job ID], team[Job Name])

))

 

Correct table and column names, Add other columns. Job ID should be unique. Join with both tables on job id and use in visual

 

https://amitchandak.medium.com/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-solution-8e3eccb41bda

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.