Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

calculating values using >,< symbols and inputbox

Hi All
I have data as below

country    Population   income
a           100          10
b           200          20
c           300          30
d           400          40

i need  drop down list box, in which i want population or income as field values
i need another drop down  list box  which should contain >,<,>=,<= as values
i need a input box where i can give input values as numbers

my selection will be as below

my output will be

straight table

3 Replies
MK_QSL
MVP
MVP

Create two Variables.

Symbol and Value

SUM({<country = {"=Sum(Population)$(Symbol)$(Value)"}>}Population)

MK_QSL
MVP
MVP

If you want to load Symbol as Inline table and use them as List box Selection... add below in your script..

Load * Inline

[

  Symbol

  <

  <=

  >

  >=

];

Now use expression as below.

SUM({<country = {"=Sum(Population)$(=GetFieldSelections(Symbol))$(Value)"}>}Population)

MarcoWedel

Hi,

some similar solution might be:

QlikCommunity_Thread_241272_Pic1.JPG

QlikCommunity_Thread_241272_Pic2.JPG

QlikCommunity_Thread_241272_Pic3.JPG

QlikCommunity_Thread_241272_Pic4.JPG

Only({$<country={"=$(=vField&vOperator&vValue)"}>} $(vField))

see also:

The Magic of Variables

The Little Equals Sign

The Magic of Dollar Expansions

hope this helps

regards

Marco