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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Bone1897
New Member

Pro rating a cost based on start and end date using DAX

Hi all,

 

I have four columns, Circuit, Start Date, End Date and Cost. The period covered might be spanning over few months, for an instance Start Date might be 03/01/2023 and End Date 25/04/2023. I would like to pro rate the cost and to distribute it proportionally accross the whole period as per circuit and month.

 

I would like to limit the number of calculated columns and use measures mostly.

The part highlighted in yellow down on the photo is very important, because the charge is spread over 9 months, and the pro-ration is done based on the number of chargeable days for each month.

 

Thank you very much.Sample.png

1 REPLY 1
lbendlin
Super User
Super User

If you are prorating then you should prorate fairly, by number of days per month.

 

lbendlin_0-1680049438418.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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