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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ashleylinkewich
Advocate II
Advocate II

DAX: Creating a new table with months between dates and value equally divided by those months

Hi community,

 

Sorry for the poor title - I'm not sure how else to describe this problem. 

 

I am working on a project where I have a table that looks like this:

 

ProjectStart MonthEnd MonthValue
Project AJan 2022March 2022120
Project BDec 2021Feb 2022250
Project CApril 2022July 2022500

 

In order to forecast these values by month, I want to create a visual that has the value equally divided by the months the project spans. To do this, I anticipate I will need a new table that looks like this:

 

Project MonthValue
Project AJan 202240
Project AFeb 202240
Project AMar 202240
Project BDec 202183.33
Project BJan 202283.33
Project BFeb 202283.33
Project CApril 2022125
Project CMay 2022125
Project CJune 2022125
Project CJuly 2022125

 

Basically, I believe I need a table where each row is a month from each project (based on the start and end months) and the value divided equally between those months.

 

Does anyone have suggestions on how to solve this, or the DAX required? Also open to other solutions!

 

Cheers,

1 REPLY 1
amitchandak
Super User
Super User

@ashleylinkewich , refer to the blog or the file attached for a similar solution

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-o...

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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