Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Previous Year

I am trying to find the previous invoice total for August last year and have used the following expression

Sum({<[Bill Date]={">= $(=monthstart(Monthend(today()+1,-12))) <=$(=monthend(today()+1,-12))"},

Year = {*},
Period = {*},
Date = {*},
Month = {*},
[Calendar Year] = {*},
QuarterName = {*},
[LinkId] = {"FIN"}
>}
[Bill Value] * $(RevenueRate))

I could hard code the values in to year and month but I need this t be dynamic so when I run for September 2016 I get September 2015 invoice total as wel

Any ideas

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

You should try this.

Sum({<[Bill Date]={">= $(=monthstart(Addmonths(today()+1,-12))) <=$(=Addmonths(today()+1,-12))"},

Year = ,

Period = ,

Date = ,

Month = ,

[Calendar Year] = ,

QuarterName = ,

[LinkId] = {"FIN"}

>}

[Bill Value] * $(RevenueRate))

Regards,

Kaushik Solanki

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

Hi, Thanks but that has summed the totals up incorrectly as well