Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Is it possible to select in multiple fields by .Select or .ToggleSelect?

Fox example,

LOAD * INLINE [
Institution, Distributor,Sales
A101,B101,500
A102,B101,600
B101,C102,350
B101,D103,200
A103,C102,600
];

I want to split the QVW file, which keep the Institution='B101' or Distributor='B101'.

How can I do it by Macro?

5 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You can issue multiple Selects. First one one field and then the other. But why use a macro?

Anonymous
Not applicable
Author

I want to auto-split the QVW file by Macro.

For example,

B101.qvw => Institution=B101 or Distributor=B101

B102.qvw => Institution=B102 or Distributor=B102

Not applicable
Author

John,

Please have a look at attached sample qvw.

That may help you to achieve whatever u want.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Here are a number of non-macro solutions, depending on your business problem.

1. One qvw, use SECTION ACCESS or Publisher to reduce the data to the content appropriate for the user.

2. Multiple QVWs, limiting the the data with WHERE clauses.

3. One qvw data that contains the all data model. BINARY LOAD this model in multiple qvws and use INNER JOIN to reduce the data to the applicable set.

Hope this helps.

Anonymous
Not applicable
Author

Dear Rob,

My purpose is to auto-split(reduce) the QVW by all the customers' id, like A101,A102,A103,...
Actually, customersid in two columns, Institution and Distributor.


for example,
B101.qvw will contains

[ A101,B101,500
A102,B101,600
B101,C102,350
B101,D103,200 ]


C102.qvw will contains

[ B101,C102,350
A103,C102,600 ]

Some different QVW file maybe contain same rows of all.


1. One qvw, use SECTION ACCESS or Publisher to reduce the data to the content appropriate for the user.
A:If using SECTION ACCESS, I think it is hard to achieve it.

2. Multiple QVWs, limiting the the data with WHERE clauses.
A:If using WHERE in QVW script, it is impossible to shrink the QVW size, and reload data for every splited QVW(like B101.qvw,...) again.

3. One qvw data that contains the all data model. BINARY LOAD this model in multiple qvws and use INNER JOIN to reduce the data to the applicable set.
A:Both 1 and 2.