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

Previous YTD Financial Year

Hi all,

Need for all your help,

How to write expression with previous YTD in financial year (start from July end June)?

So, if I click Month : Jan 2013, so it will sum from July 2011 until Jan 2012.

I had success write YTD for current year with this expression :

sum({<Month,FinancialMonth={"<=$(=only(FinancialMonth))"}>} Amount)  

Thanks before.

Regards,

Heri

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     You can try this expression.

     Sum({<Date = {">=$(=Yearstart(Max(Date),-1,6))<=$(=addmonths(Max(Date),-12))"},Month=,Year=>}Sales)

    

     have a look at the attached example.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

1 Reply
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     You can try this expression.

     Sum({<Date = {">=$(=Yearstart(Max(Date),-1,6))<=$(=addmonths(Max(Date),-12))"},Month=,Year=>}Sales)

    

     have a look at the attached example.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!