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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jlarques
Helper V
Helper V

Create a table with new rows

Dear community,

I have another challenge to overcome.

 

I have two tables: 

  • Payroll table with pay date of each employee
  • Project table with start and end date and  % project attribution of each employee

I want to create a new table that includes for each month:

  • Start date
  • End date
  • Employee
  • Project
  • %Project attribution

This table is created based on start and end date of date's project. For instance, first project begins in 1st January and end in 8th of August, so the table has to have as many rows as months are included between the start and end dates, only for this project. Verify each project and do the same for each month including %project attribution. I attached an image to try to clarify all the details.

jlarques_0-1718615638976.png

The thing is that an employee can be working on several projects in the same month and the idea is calculate the %project attribution for each month and each project, based on project table.

 

Thanks in advance for your help.

 

José Luis

5 REPLIES 5
AlienSx
Super User
Super User

@jlarques seems like project table contains inconsistent data. Why nothing happens after Aug 20th? Why total project allocation <> 100% after Aug 20th?

Hi @AlienSx ,

because project finish in this date. Other projects have another dates.

 

Thanks,

 

amitchandak
Super User
Super User

@jlarques , You can do have additional row using

 

Tables way
https://amitchandak.mediumcom/dax-get-all-dates-between-the-start-and-end-date-8f3dac4ff90b
https://amitchandak.medium.com/power-query-get-all-dates-between-the-start-and-end-date-9ad6a84cf5f2

 

Measure way

Power BI Dax Measure- Allocate data between Range: https://youtu.be/O653vwLTUzM

 

Better the HR Way

Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: https://youtu.be/fvgcx8QLqZU

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

Hi @amitchandak ,

apologies for my delay's answer.

I watched your videos and I understood you can do it, but I don't how to add rows with the specific problem that I have, because you're using measures and it's complicated for me translate it to a tables.

 

Thanks for your help.

 

@amitchandak 

thanks for your answer. 

 

Let me review all your information and I'll tell you if I can do it or not. 

 

Thanks again for your help.

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Kudoed Authors