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

Staffing Projection / Allocation Using CrossJoin

I'm looking to compare projected staffing data with allocated data. The projected data is summarized by month (example below)

Project No.MonthEmployees
20200101-01-204
20200102-01-206
20200103-01-209
20200104-01-2012
20200105-01-2016
20200106-01-2020
20200107-01-2022
20200108-01-2022
20200109-01-2022
20200110-01-2022
20200111-01-2022
20200112-01-2019

 

The allocated data is listed as Start Date, End Date, and Percent Allocated (example below).

Employee NameStart DateEnd DateProject No.% Allocated
Employee 101-01-2001-01-21202001100%
Employee 201-01-2001-01-21202001100%
Employee 301-01-2001-01-21202001100%
Employee 401-01-2001-01-21202001100%
Employee 502-01-2001-01-21202001100%
Employee 602-01-2001-01-21202001100%
Employee 702-01-2001-01-21202001100%
Employee 803-01-2001-01-21202001100%
Employee 903-01-2001-01-21202001100%
Employee 1004-01-2001-01-21202001100%
Employee 1104-01-2001-01-21202001100%

 

I'd like to make a Line and Stacked Column Chart Visualization comparing projected with allocated. I was thinking I could make a calendar table and then try to CrossJoin all the data together, but I'm running into some issues because of lack of experience. Not sure if I can crossjoin 3 tables together or if that is even the right approach.

 

Here is an old post I made with a similar question/resolution (but without stacking data):

https://community.powerbi.com/t5/Desktop/Summarizing-Values-At-Weekly-Intervals/m-p/748269#M360676 

 

Any help is appreciated.

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Does userelationship meet your requirement?

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
amitchandak
Super User
Super User

Create a calendar table with the month start date. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s.
Refer
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions

 

Now refer Active employee count and the table created month-wise in blog (pbix) -

https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-wi...

Create a summarize table with month start dates, employee name, and allocation %.

 

Join this new table with a date table and the first project table with date.

 

Share a pbix with some sample data. In case it still does not work out.

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

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.