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
nuriac
Helper III
Helper III

Distribute an amount between two dates

Hello

I would like to know which formula I must use in order to distribute the amount (of an order) between two dates, the date of start and the end date of the service.

The idea is that having an amount and the start and end date, because you know what amount I will bill each month.

Example:

Order 1: 100,000 euros; start 1/11/2020 and end 1/11/2021

although I've seen some post with similar information, I haven't been able to apply it.

Thank you

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@nuriac , Check if the attachment can help you.

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
amitchandak
Super User
Super User

@nuriac , Check if the attachment can help you.

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

It puts the correct values to me, but they only come out in one month, for example if an order lasts from January to May, I only get values for that order in the month of January. The January value is correct, but I lack data in the other months.

Value by day of Month ? CALCULATE(SUMX(SUMMARIZE(filter(CROSSJOIN(CALENDAR,'SELL ORDERS'),CALENDAR[Date] >'SELL ORDERS'[Date Shipping]&& CALENDAR[Date]<' 'SALES ORDERS'[End Date]),'SELL ORDERS'[Sales Order No],CALENDAR[Date],'SALES ORDERS'[[Measures]].[ Expected Billing]]],'SALES ORDERS'[Shipping Date],'SALES ORDERS'[End Date]),DIVIDE('SALES ORDERS'[[Measures]].[ Expected Billing]]],DATEDIFF('SALES ORDERS'[Shipping Date],'SALES ORDERS'[End Date],DAY)+1)))

Solved.

It had related the calendar to the start date and therefore did not distribute correctly between the months. Removing the relationship has been perfect.

Thank you

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