March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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.
Solved! Go to Solution.
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.
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 )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
86 | |
76 | |
57 | |
52 |
User | Count |
---|---|
201 | |
137 | |
108 | |
73 | |
68 |