I have a dataset that includes start_date and end_date for a job—similar to an HR dataset. For example, if a job was posted on February 1st and expired on December 1st, it was active across all months from February through December.
I want to create a monthly breakdown to classify “advertised” vs. “unadvertised” jobs. To do this, each job should be counted as active for every month that falls within its start and end date range.
What’s the best way to implement this logic?
sample data
job id ------ create date -------------- post date ------------ expired date
A ------ 2024-12-01 -------------- 2025-01-01 ----------- 2025-03-01
in the pivot table I want the advertised column to count :
advertised from post date to expired date and unadvertised from create date to post date?
Since we have not heard back from you, I’ll go ahead and close/archive this topic. However, if you have any additional questions, feel free to create a new topic in the community and link this discussion for relevant information.