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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

How to split a value across multiple months *unevenly*.

Hi all, I've been stuck with this problem for a little while and I'm hoping one of the many experts on here will be able to assist me. 

 

We are forecasting sales and gross profitabiliy based on a number of scenarios and for the purposes of this exercise, have a table like the followign as a part of an output: 

 

You can assume the the 'Date' below is the Sales Date, but it comes from a larget master date table that has all of the usual inclusions such as month number etc. 

 

1.png

Now, we have mocked up another very simple table with the month id and % to claim against. But this can easily be changed to whatever is simplest (numbe of days etc.)

 

2.png

The 1 - 6 in the above table is the month numbers to 'add' to the sales date to initiate that part of the claim, we're happy to change this to days or any other value that will simplify this work. 

 

So if we look at the above example (July and August 2019) the desired output would be something lie this: 

 

DateJuly-19August-19...
% of income claimed$2,946,115.95 (15% of $19,640,773)$4,910,193.25
(25% of $19,640,773)
...
  $3,591,961.20
(15% of $23,946,408)
...
  $8,502,154 

 

I hope that makes sense! Open to all suggestions. Thank you for your help

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You may create month column in your fact data table first of all, then create relationship between the fact data table and your Division table on Month field.

 

Month= MONTH(Data[Sale Date])

 

Then create measure like DAX below. You may choose Table visual or Matrix visual to display the result.

 

Contract Amount to be claimed= Data[Contract Gross Profit]*RELATED(Division[Claim Amount])

 

Best Regards,

Amy

 

Community Support Team _ Amy

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

3 REPLIES 3
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You may create month column in your fact data table first of all, then create relationship between the fact data table and your Division table on Month field.

 

Month= MONTH(Data[Sale Date])

 

Then create measure like DAX below. You may choose Table visual or Matrix visual to display the result.

 

Contract Amount to be claimed= Data[Contract Gross Profit]*RELATED(Division[Claim Amount])

 

Best Regards,

Amy

 

Community Support Team _ Amy

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

Can you post your source data as text so that this can be recreated easily?



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...
Anonymous
Not applicable

Here's a link to a Google Drive Sheet with some data (dummy input and the split with expected output) what is missing is the date table but I figure those are mostly generated via a script. 

 

https://docs.google.com/spreadsheets/d/1_0KE2h2p4lYDHr8cC85mYQD40jpca9KwOXr4_6t0qpA/edit?usp=sharing...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.