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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

How to add rows in existing table for months between different start date and end date

Below is the table having emp id ,name,startdate,end date,date,month,allocation,capacity . The start date is 1st Jan 2021 and end date is 31st dec 2021 But only the allocation till June is given.For rest of the month there is no record in excel.The requirment is to showcase the allocation for rest of the month (allocation will be blank).I need to add rows for rest of the month. This is just one example We ahve many employees with different start date and end date only .How to add rows for rest of the month

 

Sarvina_0-1631691087962.png

Resulting date should be like,

 

Sarvina_1-1631691876503.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You can create a new tbale of measure to display. Refer the file attached for the new table approch.

 

A blog for measure approach

How to divide/distribute values between start date or end date or count days across months/days: https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-or-end-date/ba-p/1503785

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Is there any other way to join Allocation and newly created table because left oute join is not working here

amitchandak
Super User
Super User

@Anonymous , You can create a new tbale of measure to display. Refer the file attached for the new table approch.

 

A blog for measure approach

How to divide/distribute values between start date or end date or count days across months/days: https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-or-end-date/ba-p/1503785

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
Anonymous
Not applicable


Thanks I was able to create the table.

table code:SUMMARIZE(filter(CROSSJOIN(Sheet1,'Date'),'Date'[Date]>=(Sheet1[startdate]) && 'Date'[Date]<=(Sheet1[end date])), [Month Year],[Month Year Sort],Sheet1[name],sheet1[empid])

 

But now i want to join this table with my allocation table. Emp id is the matching column in both table bt i am unable to do left outer join between table and allocation table. i am getting error "No common column joins detected".

 

Allocation table

Sarvina_0-1631765920482.png

 Table 

Sarvina_1-1631765962613.png

Excepted result after left outer join

Sarvina_2-1631766002723.png

Also i need to flag the rows which are newly created after left join as" new entry" and remaining rows as "old entry". New column with these values should be there.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Solution Authors