Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis - Previous YTD excluding Month selections

Hi Guys,

Below is my set analysis expression to calculate Previous Year Total.

Sum({$<[FinYear]={$(=max([FinYear])-1)}>} GLTranAmount)

Within my model, I'd like to exclude all selections based on Month.

This will ensure that a the Previous Year Total will only change when a different year is selected, i.e. it is a static total by year and not a rolling Previous Year YTD.

I've looked at Set Identifiers to exclude Month selection(s) but to no avail.

Does anyone have a solution?

Thanks in advance.

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

Try using the below formulae.

Sum({$<[FinYear]={$(=max([FinYear])-1)},Month = >} GLTranAmount).

- Sridhar

View solution in original post

2 Replies
Not applicable
Author

Hi,

Try using the below formulae.

Sum({$<[FinYear]={$(=max([FinYear])-1)},Month = >} GLTranAmount).

- Sridhar

Not applicable
Author

Thanks, works a treat.

I had the correct syntax but was placing it before the {$<[FinYear={$(.... condition.