Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
vijayit43
Creator
Creator

Problem In Range

Hi Expert,             

My Data Format is 

    

FINYEARFROMSLABMTTOSLABMTCUSTOMERTARGETID
2014-2015050CLUB-A
2014-201550300CLUB-B
2014-20153001100CLUB-C
2014-201511002600CLUB-D
2014-20152600100000CLUB-E
Header 1

and one column in Quantity when total quantity between 0 to 50 then CLUB-A when 50-300 then CLUB-B as so on how to write script on text Object Please Suggest Attached Referance given Bellow..

1 Solution

Accepted Solutions
MarcoWedel

Hi,

one possible solution could be:

=Only({$<FROMSLABMT={"=FROMSLABMT<=$(vTotalSale)"},TOSLABMT={"=TOSLABMT>=$(vTotalSale)"}>} CUSTOMERTARGETID)

QlikCommunity_Thread_162397_Pic1.JPG

QlikCommunity_Thread_162397_Pic2.JPG

hope this helps

regards

Marco

View solution in original post

7 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If I understand your question correctly then you can use the intervalmatch function to match the quantities with the intervals. You'll have to use the extended syntax to make the match for each FINYEAR value. You can find an example here: Re: IntervalMatch Multiplying Records


talk is cheap, supply exceeds demand
vijayit43
Creator
Creator
Author

I cant understand Interval match function please suggest with example

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

Read this doc for better understanding of IntervalMatch function.

vijayit43
Creator
Creator
Author

In Interval Match Function used in Script, But My problem not in Script My Problem In Front end where data change according to filter.

MarcoWedel

Hi,

one possible solution could be:

=Only({$<FROMSLABMT={"=FROMSLABMT<=$(vTotalSale)"},TOSLABMT={"=TOSLABMT>=$(vTotalSale)"}>} CUSTOMERTARGETID)

QlikCommunity_Thread_162397_Pic1.JPG

QlikCommunity_Thread_162397_Pic2.JPG

hope this helps

regards

Marco

vijayit43
Creator
Creator
Author

How to add in Pivot Chart AS Like this.

   

FINYEARCUSTACCOUNTCUSTOMERTARGETID
2014-2015CUST/000002CLUB-A
2014-2015CUST/000007CLUB-E
MarcoWedel

Hi,

this might be difficult with set expressions because those are evaluated only once per table, not per row.

Please close this thread if your initital question regarding text boxes is answered.

thanks

regards

Marco