Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need help in set analysis expression

Hi,

I need help in writing specific formulae related with set analysis. I have kept attached file QlikView & input file as well for reference.

I need to create a table with dimension values + sales measure + recurring measure + % mix measure.

recurring measure formulae = if sales for that item has happened last year (i.e. last year sale >0) as well as this year (i.e. this year sales > 0) then recurring = 1 other wise 0. this is working fine.

% Mix formulae = I need help in this. I am using below formulae

Sum({$<YEAR = {$(=Max(YEAR)-1)}>} SALES)

/

Sum(TOTAL {$<YEAR = {$(=Max(YEAR)-1)}>} SALES)

Here we need to calculate percentage based on: last year sales value / total last year sales. But total last year sales should only come only when recurring = 1. This I am unable to implement how to put it only for recurring = 1.

Any help in this regard will appreciate.

Regards,

Manash

2 Replies
salto
Specialist II
Specialist II

Hi,

Column(2) will give you the result of the column in the second postiion of the chart. So:

=If (Column(2)='1',

Sum({$<YEAR = {$(=Max(YEAR)-1)}>} SALES)

/

Sum(TOTAL {$<YEAR = {$(=Max(YEAR)-1)} >} SALES))

HTH.

Not applicable
Author

Hi,

Actually I need to implement this in 2nd line.

Sum(TOTAL {$<YEAR = {$(=Max(YEAR)-1)} >} SALES))


It should do the total of those records where Recurring = 1.


Regards,

Manash