Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

I need table on min and max input value

HI!!

I have a table with the field in database or qvd is

employee codenamehospitalbill_daterateqtyamount(rate*qty)
1245smithxyz 01-Jan-144001400
1245                 smith xyz15-Mar-14 500  1 500
1245smithxyz20-Mar-1450021000

now i want to show above table on min and max value insert by user

I have taken two input box of varibale minAmt and maxAmt

let suppose value inputed by user is minAmt vaiable=500 and maxAmt=500

with the expresion :  Sum({&<RATE={">=$(minAmt)<=&(maxAmt)"}>}Amount)

its working fine

but WHAT if my table is an accumulated table OR GROUP BY TABLE

eployee codenamehospitalmonthratesum(amount)
1245smithxyz Jan400400
1245                 smith xyzMar 500  1500

i have tried  LIKE THAT:

Sum({&<RATE={">=$(minAmt)<=&(maxAmt)"}>}SUM(Amount))

BUT IT IS NOT WORKING..

1 Solution

Accepted Solutions
Not applicable
Author

I got the desire result...... actually I was applying the expression on rate it should be on amount

wrong: Sum({<rate={">=$(=minAmt)<=$(=maxAmt)"}>}amount)

right: Sum({<amount={">=$(=minAmt)<=$(=maxAmt)"}>}amount)


thnks all for who replied...

View solution in original post

4 Replies
anbu1984
Master III
Master III

You can use the same expression Sum({&<RATE={">=$(minAmt)<=&(maxAmt)"}>}Amount) for accumulated table.

Not applicable
Author

try:

Sum({<rate={">=$(=minAmt)<=$(=maxAmt)"}>}rate*qty)

Field names are case sensitive!

If field amount is calculated during reload, you may of course try also:

Sum({<rate={">=$(=minAmt)<=$(=maxAmt)"}>}amount)

reg,

D

Not applicable
Author

thnks for advice guys

but I dont want to search on amount now.....

I want to search on sum(amount)

suppose min value -=1500 and max value=1500

then it show only one row

1245                smithxyzMar500 1500
Not applicable
Author

I got the desire result...... actually I was applying the expression on rate it should be on amount

wrong: Sum({<rate={">=$(=minAmt)<=$(=maxAmt)"}>}amount)

right: Sum({<amount={">=$(=minAmt)<=$(=maxAmt)"}>}amount)


thnks all for who replied...