Forum Discussion

ashleylinkewich's avatar
ashleylinkewich
Icon for Advocate II rankAdvocate II
6 years ago
Solved

Year To Date Values When Single Month Slicer Selected

Hi all!

 

I am looking to have a user select a month from the slicer and have the YTD value come up for each line in the P&L. I have created a measure that works well and summarises them perfectly as seen in the photo of the table below... The code is 

Budget YTD = CALCULATE('**IBRCS FY21 Budget'[BudgetCalc], DATESYTD('**IBRCS FY21 Budget'[Month], "30/6")), to transform it into financial YTD rather than calendar. 

 

However when I add that calc to my matrix, I want the user to be able to select the month and have the YTD value display... naturally if I select august it only shows the sum for August and not July + August. 

 

 

Is there a way that I can have the YTD value in my matrix by only selecting the one month instead of multiple to summarise the values? I.e if they select September, having the Budget YTD display the sum of July + August + September. 

 

Thanks in advance! 

8 Replies