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

Range

Hi Guys,

I have 2 variabls(From and To) If I have to use range of values between from and To. How can I use it as an expression?

Please anybody help on this

Thanks

14 Replies
Not applicable
Author

Please any body help on this

Jason_Michaelides
Luminary Alumni
Luminary Alumni

Hi - can you be more specific about what you want to do?  If you want a listbox of all values between the two variable then you can create a listbox using the expression ValueLoop(vFrom,vTo).

Or you may need to create real data points in the script (unless the variable can change).

Hard to help without detail.

Not applicable
Author

I have a grid chart,

y axis as 0 to 23 and x axis as sun, mon to sat.

If any user enter 10 to 15 in the input box I want 10 to 15 in the chart to be highlighted.

I used the reference lines in the presentation tab, but need to know the function to be used to accept this range 10 to 15.

Thanks

Jason_Michaelides
Luminary Alumni
Luminary Alumni

What version are you using?  Can you post your app?

Not applicable
Author

version: 9 and attached is the screen shot. Tried with the valueloop. No Joy:(

Any info please let me know..

Thanks

sivarajs
Specialist II
Specialist II

u can use set analysis for range

try this like....

sum({$<field= {'>=10<=15'}>}field)

Sivaraj S

Jason_Michaelides
Luminary Alumni
Luminary Alumni

Can't you just allow users to select HOUROFDAY?  Do you need to use variables vFrom and vTo?

If so, I guess your current expression is something like COUNT(something)

Try COUNT({<HOUROFDAY={">=vFrom<=vTo"}>}  something)

Jason_Michaelides
Luminary Alumni
Luminary Alumni

(Would help if you can post your app with some data in it)

Not applicable
Author

HI,

you can use it in set analysis as:

Sum({$<Date={">=$(=Date($(vfrom)))<=$(=Date($(=vto)))"}>}Sales)

This expression sum up the sales where date is between vfron and vto (Two variables selected by user with the hepl of calender)

Hope this help...

Regards

Arun Goel