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: 
Not applicable

How can users upload tables (XLS) for filtering?

I have a requierment where a user needs to upload a XLS of product codes so he can apply filters to a QVW. There's no pattern or criteria where I can anticipate this filter in the load script, so I need a solution where a user can upload X amount of values to a QVW. Anyone have any suggestions?

4 Replies
Not applicable
Author

Never mind, I solved it with the following script


Sub Filter
arrFilter = split(ActiveDocument.Variables("varFilter").GetContent.String,",")

for x = 0 to ubound(arrFilter)
ActiveDocument.Fields("FieldToFilter").ToggleSelect arrFilter(x)
next
End Sub


Not applicable
Author

Hi dragonauta,

I have the same problem, but i don't understand how you solve the problem.

Do you have any example?

Thanks

Not applicable
Author

@dragonauta - I am not clear about what is it you are trying to do...you can load an excel in the doc, and then use that variable name in your script, cant you?

what ur doing now will also work though...

Not applicable
Author

Hi,

Thanks for your support and sorry for my bad English.

Sorry for my bad English.

I have in Qlikview 150,000 customers. By filter I can display the sales for individual customers. Now I would have I the individual customer in filter set and view the sales will be like 500 customers who are in an Excel file .

My question is: if I give this code in script, how can I load the Excel file in the filter with the 500 customers?

What do you mean "load excel in doc"? You mean I load excel with the 500 customer in script and combine with the total Customer in script and use the variable?

I thought I can load the excel file (500 customer) as filter in the qlikview model and not in script.

Thanks.