cancel
Showing results for 
Search instead for 
Did you mean: 
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...

 

 



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors