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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Pim_V
Frequent Visitor

YTD budget measure excluding the values of the future months

Dear all,

 

I would like to compare actual YTD figures with budget YTD figures.

 

How do i make sure that my YTD budget figure does not include the values of the budget from May until December 2017.

I would like to accomplish this without  adding a slicer or filter on the report page.

 

At this moment the visual compares the YTD actual value till april(because there are no future actuals) with the YTD budget value of whole 2017.

 

My current Budget YTD formula is:

 

Budget YTD Third Party Cashflow = CALCULATE(SUM('Cashflow Total'[Third party cash flow]); FILTER(ALL('Cashflow Total'[Year & Month]); 'Cashflow Total'[Year & Month] <= MAX('Cashflow Total'[Year & Month]))) 

 

The column 'Cashflow total'[Year & Month] contains full dates like dd-mm-yyyy.

 

I am looking forward to some help, thank you. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

One way to solve this is to add "FutureDatesIndication" column in your Calendar Table.
For example: FutureDatesIndication = IF(CalendarTable[Date]>TODAY(),"Future","")
Then, add this FILTER to your CALCULATE:
FILTER(CalendarTable,CalendarTable[FutureDatesIndication]<>"Future")

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

One way to solve this is to add "FutureDatesIndication" column in your Calendar Table.
For example: FutureDatesIndication = IF(CalendarTable[Date]>TODAY(),"Future","")
Then, add this FILTER to your CALCULATE:
FILTER(CalendarTable,CalendarTable[FutureDatesIndication]<>"Future")

Thanks for the reply.

I already figured it out myself. I used the same solution as you described.

 

I could not find the button to mark the post as solved before. But now i did.

mattbrice
Solution Sage
Solution Sage

 

Budget YTD Third Party Cashflow =
VAR LastActualDate =
    LASTNONBLANK ( 'Cashflow Total'[Year & Month]; [Actual Sales] )
RETURN
    CALCULATE (
        SUM ( 'Cashflow Total'[Third party cash flow] );
        FILTER (
            ALL ( 'Cashflow Total'[Year & Month] );
            'Cashflow Total'[Year & Month] <= LastActualDate
        )
    )

Where [Actual Sales] = SUM ( Table[Actual Sales Column] )

 

 or  a little bit simpler code:

 

Budget YTD Third Party Cashflow =
VAR LastActualDate =
    LASTNONBLANK ( 'Cashflow Total'[Year & Month]; [Actual Sales] )
RETURN
    TOTALYTD ( SUM ( 'Cashflow Total'[Third party cash flow] ); LastActualDate )

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.