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
Sergun70
Frequent Visitor

Allocate rest ammount

I have allocated planned budged over time proportionally  up to end date and i have fact column and know i don't know how to allocate differenece of planned budget and actua from last transactionl up to end date. Help will be very appreciated!

4 REPLIES 4
parry2k
Super User
Super User

@Sergun70can you provide soem sample data and expected result it will help for better support



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

My data looks like this: 
Project budget:12000
   
 Budget equally allocatedActual
Jan1000900
Feb1000900
Mar1000900
Apr1000900
May1000900
Jun1000900
Jul1000900
Aug1000 
Sep1000 
Oct1000 
Nov1000 
Dec1000 
Total120006300
   
Desired result: 
MonthBudget allocatedActual
Jan1000900
Feb1000900
Mar1000900
Apr1000900
May1000900
Jun1000900
Jul1000900
Aug10001140
Sep10001140
Oct10001140
Nov10001140
Dec10001140
Total1200012000

Hi @Sergun70,

 

If the [Month] column in dataset is sorted in correct order (Jan, Feb, Mar, Apr etc), please add an index column in Query Editor mode.

1.PNG

If the [Month] column is sorted in irregular order, (like, Jan, Mar, Nov, etc), please add a conditional column in Query Editor to list MonthNo for each Month name.

2.PNG

 

Then, in report view, create calculated column.

Actual 2 =
IF (
    'Project budget'[Index] > MONTH ( TODAY () ),
    (
        CALCULATE (
            SUM ( 'Project budget'[Budget equally allocated] ),
            ALL ( 'Project budget' )
        )
            - CALCULATE (
                SUM ( 'Project budget'[Actual] ),
                FILTER ( 'Project budget', 'Project budget'[Index] <= MONTH ( TODAY () ) )
            )
    )
        / ( 12 - MONTH ( TODAY () ) ),
    'Project budget'[Actual]
)

4.PNG

 

To get your desired output, you can create a calculated table as well.

Result Table =
SELECTCOLUMNS (
    'Project budget',
    "Month", 'Project budget'[Month],
    "Budget allocated", 'Project budget'[Budget equally allocated],
    "Actual", 'Project budget'[Actual 2]
)

3.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks a lot.

But this is not exactly what I want. I have separate date table and I have subheaders with data in month.

I want to allocate remainder of budget to future monthes where I haven't actual data.

Budget is allocated with measure:

DIVIDE (
CALCULATE ([GL_1.AMT];
FILTER (
'Headers_2';
'Headers_2'[Начало] <= MAX('Dates'[Date] )
&& 'Headers_2'[Окончание] >= MAX ('Dates'[Date])))
; (COUNTROWS (
DATESBETWEEN (
'Dates'[Date]
; FIRSTDATE('Headers_2'[Начало])
; LASTDATE (Headers_2[Окончание] )
)))
)

 

 

 BudgetActual 
jan  
mat618 078,432 473 359,46
pcs1 579 185,2264 03 622,48
etc283 910,5039 420,71
prof621 912,38 
exp6 11,24 
labour1 071 360,39 406 201,90
feb  
   
mat558 264,38 
pcs1 426 60,843 2 660,08
etc26 435,29449 22,88
prof561 77,31 
exp5 546,93 
labour967 680,351 630 730,48

mar

......

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.