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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

How to calculate cost (by year) across multiple years when the service dates starts mid year?

Hello all, hope everyone is staying safe during this crazy time.

 

I need some help with a problem. What i'm trying to do is this:

 

I have a Purchase order data where we have service dates. For example, cleaning services for Jan 1 2019 - Dec 31 2019. I can easily figure out the spend for the year 2019. However, sometimes I have Service dates where they span across multiple years and start mid year.

 

e.g. Mar 1 2019 - Mar 1 2022 for $5,000

 

How can I show what my projected spend would be for each year?

 

What I would do in excel is calculate cost per month ($5,000 / 36) then calculated how many months remaining in each year, then multiplied by the monthly cost. It would look similar something like this:

 

2019 $1,388.89 (10 months * 138.89)
2020 $1,666.67 (12 months * 138.89)
2021 $16,666.67 (12 months * 138.89)
2022 $277.78 (3 months * 138.89)

 

On second though, maybe its better to calculate cost by day since service start dates can start mid month as well?

 

Any help would be greatly appreciated. Thank yoU!

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

You could also refer to this blog:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

You could also refer to this blog:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Community Champion
Community Champion

Maybe: https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/td-p/409364



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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