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
SPalmitos
New Member

Fill Rate Calculation - Placements added after 2 months

Good day everyone,

Hope your week is off to a good start.

I need to calculate the fill rate of job vacancies [Total positions filled / Total job openings].

However, instead of using the placements for the same month, I want to use the placements that were added 2 months later.

So, for example, jobs added in January 2022 will be used for total job openings and then, for placements, using those added in March.

I hope this is clear?

 

Jobs Added List Sample

Job IDCreated Date
6418514/03/2022
6419716/03/2022
6459409/05/2022
7044306/04/2023
6815611/09/2022
6567615/07/2022
7045911/04/2023
6973020/01/2023
6973120/01/2023
7009423/02/2023
7052220/04/2023
6512531/05/2022
6574522/07/2022
7017802/03/2023
6824020/09/2022
6522709/06/2022
6514801/06/2022
6395508/02/2022
6551727/06/2022
6989706/02/2023
6276205/01/2022
6407527/02/2022
6445020/04/2022
6461912/05/2022
6462012/05/2022
6547223/06/2022
6570918/07/2022
6571018/07/2022
6586727/07/2022
6586827/07/2022
6601928/07/2022
6609203/08/2022
6609303/08/2022
6610204/08/2022
6613108/08/2022
6615010/08/2022

 

Placement List Sample

Job IDPlacement IDDate Added
641851211214/03/2022
645941268229/07/2022
627751196831/01/2022
627751197531/01/2022
627751218431/03/2022
700941347812/04/2023
702581352604/05/2023
657451275926/08/2022
639551200908/02/2022
639551202710/02/2022
639551205021/02/2022
639551210009/03/2022
639551248314/06/2022
639551286612/09/2022
639551311730/11/2022
655171252027/06/2022
698971349319/04/2023
692171373701/01/2023
692171366501/02/2023
692171346101/03/2023
692171355601/04/2023
692171365101/05/2023
629501206728/02/2022
644501222120/04/2022
646191229912/05/2022
646201230012/05/2022
657091272615/08/2022
661501298324/10/2022
687911350527/04/2023
701931361231/05/2023
951152812/01/2022
951153012/01/2022
951153112/01/2022
951153212/01/2022
951153312/01/2022
951153412/01/2022
1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

Hi @SPalmitos ,

 

According to your description, here are my steps you can follow as a solution.

(1)My test data is the same as yours.

(2) We can create a column.

month = FORMAT('PowerBI Jobs Added'[Created Date],"yyyy-mm")

(3)We can create measures. 

Total job openings = CALCULATE(COUNTROWS(ALLSELECTED('PowerBI Jobs Added')),'PowerBI Jobs Added'[month] in VALUES('PowerBI Jobs Added'[month]))
Total positions filled = COUNTROWS(FILTER(ALLSELECTED('PowerBI Placements'),EOMONTH('PowerBI Placements'[Date Added],0)=EOMONTH(MAX('PowerBI Jobs Added'[Created Date]),2)))
the fill rate of job vacancies = DIVIDE('PowerBI Jobs Added'[Total positions filled],'PowerBI Jobs Added'[Total job openings])

(4) Then the result is as follows.

vtangjiemsft_1-1687933715791.png

 

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

View solution in original post

2 REPLIES 2
v-tangjie-msft
Community Support
Community Support

Hi @SPalmitos ,

 

According to your description, here are my steps you can follow as a solution.

(1)My test data is the same as yours.

(2) We can create a column.

month = FORMAT('PowerBI Jobs Added'[Created Date],"yyyy-mm")

(3)We can create measures. 

Total job openings = CALCULATE(COUNTROWS(ALLSELECTED('PowerBI Jobs Added')),'PowerBI Jobs Added'[month] in VALUES('PowerBI Jobs Added'[month]))
Total positions filled = COUNTROWS(FILTER(ALLSELECTED('PowerBI Placements'),EOMONTH('PowerBI Placements'[Date Added],0)=EOMONTH(MAX('PowerBI Jobs Added'[Created Date]),2)))
the fill rate of job vacancies = DIVIDE('PowerBI Jobs Added'[Total positions filled],'PowerBI Jobs Added'[Total job openings])

(4) Then the result is as follows.

vtangjiemsft_1-1687933715791.png

 

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

SPalmitos
New Member

Files Sample 

 

See link for the files.

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.