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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
tstraker
Frequent Visitor

Plotting workforce numbers over time

Hi All,

 

I need help plotting the total number of personnel working on my project over time (total personnel by month) over the year. 

 

I have a table called "PEOPLE" which contains all my project's personnel data:

  1. ID
  2. Name
  3. role
  4. start date
  5. end date
  6. isActive = Y/N
  7. etc etc

I have a date table containing date, month, quarter, year, monthsort from 2018-2025.

 

I want to visualize a stacked bar/line graph showing the following:

 

  1. Line - Total number of active personnel per month for 2018/2019
    • I'm thinking that I have to calculate the total number of [isActive] per month into a new column and then plot that as a line in the visual?
  2. Bar - Total number of new starters per month (using start date)
    • Would I create a relationship between People and Date tables by start date and then plot as a bar?
  3. bar - Total number of off-boarding per month (using end date)
    • Would I create another relationship between People and Date tables by end date? Or can I leverage the start date relationship above somehow?

See below mock up (the red line is obviously not accurate, I just put it in there for illustration purposes)

 

1.PNG

 

Thanks in advance

 

 

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

Hi @tstraker ,

Current power bi not support direct analysis multiple date fields, you can consider to create a bridge table to expand all date ranges and link to variable table.

Spread revenue across period based on start and end date, slice and dase this using different dates
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @tstraker ,

Current power bi not support direct analysis multiple date fields, you can consider to create a bridge table to expand all date ranges and link to variable table.

Spread revenue across period based on start and end date, slice and dase this using different dates
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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