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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Split Value between 12 next months

Hi,

 

I have this 'General Ledger Entry'-table which contains payment for a hotline agreements. The Hotline Agreement is valid from the payment date and the next year/12 months. And I therefore wants to split the values equally between these 12 months, where the Hotline Agreement is active, so I can compare this value to the time that is being used in support for this particular customer. However, these payments is yearly, and I therefore need to split these values equally between the next 12 months.

 

I don't have all dates in this table, and I therefore have to use a datetable to do this. I have used following DAX-formular to split this value up.

 

Hotlinesplit 9 =
Var firstmonth =
FIRSTDATE('Date'[Date])
Var Budgetmonth =
DATESINPERIOD('Date'[Date];firstmonth;-12;MONTH)
Var BudgettoDivide =
-CALCULATE(SUM('General Ledger Entry'[Amount]);'General Ledger Entry'[G_L Account No_] = 4040;'Date'[Date] IN Budgetmonth)
Var NumofMonths =
CALCULATE(DISTINCTCOUNT('Date'[Month Number of Year]);Budgetmonth)
Var monthlyamount =
Divide(BudgettoDivide;NumofMonths)
Return
Sumx(values('Date'[Month Number Of Year]);monthlyamount)
 
Its seems to work okay, and it seems like that the values is being equally divided over the next 12 months. But the issue is, when I in my view filters on a specific year, it won't sum the monthly values, which I just have divided it into.

As you see in the picture, I have tried to split 61.766, which is paid May 2019 and May 2020. And I have split them into the next 12 months 5.147,17, but the grand total is blank. Further, when I in the table below, filters after year it is either blank or it divide the value wrong. It should sum it up, based on the division into months
 
2020-05-19 13_51_51-Finanstransaktioner - Test - Power BI Desktop.png
 
Any Ideas?
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Why not create a table with the monthly splits? It's very easy with Power Query. If you do this, your measures will be as simple as:

SUM( T[Column] )

and it'll be as fast as it can be.

Please do not make your life more complicated than it already is.

Your table should read something like:

Acc No. | Month | Payment

Then store your Acc No.'s with all their attributes (like the total sum) in a dimension and just create the right relationships between the above table, your Date table, and all the other relevant dimensions.

Best
D

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Why not create a table with the monthly splits? It's very easy with Power Query. If you do this, your measures will be as simple as:

SUM( T[Column] )

and it'll be as fast as it can be.

Please do not make your life more complicated than it already is.

Your table should read something like:

Acc No. | Month | Payment

Then store your Acc No.'s with all their attributes (like the total sum) in a dimension and just create the right relationships between the above table, your Date table, and all the other relevant dimensions.

Best
D
Anonymous
Not applicable

Hi Darlove,

Thank for your respone. That seems a bit easier 🙂

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.