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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Leigh_MacKay
Regular Visitor

Creating a relationship between two tables by assigning an employee name to a position/vacancy

I am trying to develop a method which creates the following relationship between two tables.  So, that even when an employee changes.  The new employees name replaces the previous person who held that job title. So, as a business we have an idea how much cost is assigned to each workbase and how many hours are covered within that workbase on a week-to-week basis.

 

Table 1)  The INPUT:  I have created a JSON form which essentially enables those creating the staffing plans the ability to select from various options (with an effective from date).  If at any time it changes.  A new date is entered which superseeds the old submission(s).

 

Workbase = Multiple sites.

Shift Plan = What area within the site (the list available depends on the workbase selected).

Effective Date = as explained above.

Job Title = list of 33 different job titles within the company which can be assigned to multiple.

Level = The grade level's that are available are those that are assigned to Job Title.

Default Contracted Weekly Hours = As per contractually employed.

Core Day Hours = string of  numbers from 0.5 Hours (being half an hour) to 1 being a full hour (up to 40) The same process also applies to 'Extra Day Hours', 'Core Night Hours', and 'Extra Night Hours'.

 

Table 2)  The OUTPUT: In Power Bi, I'd like to assign names from our dynamic staff list to each job title.  That way, we can see who works at each workbase and how many hours in each particular week (effective from date) they are doing.

 

I have created a relationship between the columns called Job Title (from the form) and job_title (from the dynamic staff list), but I have been unable to say, 'this person, works at this workbase as a Cleaner'.

 

Where we have NO MATCH between job titles.  I'd like it to create a vacancy so that our recruitment team can search for vacnacies by the number of hours and job title.

The report would also then enable payroll to know how much they are spending (per week) or by whatever period selected.

 

If anybody has any ideas.  I would really value them.

1 REPLY 1
v-jiascu-msft
Employee
Employee

Hi @Leigh_MacKay,

 

Do you have some sample data now? Maybe the filters and the slicers can help. Or we can use a measure to check the status. If you can share your .pbix file, that would be great for us the start with.

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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