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! Request now

Reply
Anonymous
Not applicable

Help with spreading Rev equally across months with different start and end dates.

Hello,

 

I have ben looking through forum posts to try and find this answer and maybe because I am a newbie this hasnt worked out too well for me .

 

I am trying to transform my input data of this:

 

ProjectNameStart DateDue DateRevenue
Project 1Task A12/04/2109/09/21USD 1,200
Project 1Task B27/01/2124/04/21USD 50,000
Project 2Task C01/01/2131/03/21USD 6,528

 

Into an out put like this :

 JanFebMarAprMayJunJulAugSepOctNovDec
Project 1            
Task A   200200200200200200   
Task B12500125001250012500        
Project 2            
task C217621762176         

 

So it will show the Rev split equally across the months the tasks are active , regardless of which day of the month they have started.

 

To be honest I have not even come close to getting it right yet , but from looking through the previous post it does seem posible , but I must not be understanding of how to do it my self very well.

 

Any help would be a life save . Thank you in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Create a calendar table as below.

9.PNG

Then create a calculated column on data table.

Column = 'Table'[Revenue]/(DATEDIFF('Table'[Start Date],'Table'[Due Date],MONTH)+1)

10.PNG

Then create a measure as below.

Measure = IF(SELECTEDVALUE('calendar'[monthno])>=MONTH(SELECTEDVALUE('Table'[Start Date]))&&SELECTEDVALUE('calendar'[monthno])<=MONTH(SELECTEDVALUE('Table'[Due Date])),SELECTEDVALUE('Table'[Column]),0)

11.PNG

 

Best Regards,

Jay

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Create a calendar table as below.

9.PNG

Then create a calculated column on data table.

Column = 'Table'[Revenue]/(DATEDIFF('Table'[Start Date],'Table'[Due Date],MONTH)+1)

10.PNG

Then create a measure as below.

Measure = IF(SELECTEDVALUE('calendar'[monthno])>=MONTH(SELECTEDVALUE('Table'[Start Date]))&&SELECTEDVALUE('calendar'[monthno])<=MONTH(SELECTEDVALUE('Table'[Due Date])),SELECTEDVALUE('Table'[Column]),0)

11.PNG

 

Best Regards,

Jay

amitchandak
Super User
Super User

@Anonymous , refer to my blog and the file attached for two approaches

 

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

Hello @amitchandak,

 

thank you very much for helping me with this .

 

I have tried the method on your blog and for some reason it is not splitting evenly , all the months are equal appart from the last , which shoots it up higher than the original value.

Capture3.PNG

total value should equal 1200 but it is actually over shooting.

 

Below is the mesaure equation I used:

 

Value by day of Month = CALCULATE(SUMX(SUMMARIZE(filter(CROSSJOIN(''Project','Date'),'Date'[Date] >= 'Project'[Start Date] && 'Date'[Date]<= ''Project'[Due Date]),''Project'[id],'Date'[Date],''Project'[Revenue],''Project' [Start Date],''Project' [Due Date]),DIVIDE(''Project'[Revenue] ,DATEDIFF(''Project' [Start Date],''Project'[Due Date],day)+1)))
 
Any Idea why this is not pulling through right?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors