Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Manish
Creator
Creator

Above function with set analysis filter condition

Hi All

I have a data set as below:

LOB Number Flag Amount
A 1234 0 100
A 4567 1 150
A 7890 1 50
B 3344 1 200
B 6677 0 300
B 8899 1 400

 

First, I created a straight table with below dimension and expression.

Dimension: LOB, Number

Expression: Sum ({<Flag= {1} Amount)

LOB Number Flag Amount
A 4567 1 150
A 7890 1 50
B 3344 1 200
B 8899 1 400

 

Now, my requirement is I need to write another expression as below but as soon as I am doing it, I am getting all the data in the straight table and not as per the above expression. Basically, the expression below should work only on the data which is filtered by the expression mentioned above.

Expression to be added: If (LOB <> Above (Total LOB),'1A','1B') 

Labels (1)
2 Replies
sidhiq91
Specialist II
Specialist II

@Manish Could you please post what the expected output should look like?

Manish
Creator
Creator
Author

@sidhiq91 

As below:

LOB Number Flag Amount If (LOB <> Above (Total LOB),'1A','1B')
A 4567 1 150 1A
A 7890 1 50 1B
B 3344 1 200 1A
B 8899 1 400 1B