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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Query in Tagging


Hello all,

Could you please help me to sort the following problem which I face in Qlikview?

I have the following table in my qlikview application.

Region 1 has one account ABC and * indicates all the sub-accounts available in the database (say 100)

Region 2 has one account DEF and there are 2 sub-accounts B1 & B2 (out of the available say 50 sub-accounts, I take only B1 & B2 sub-accts).

Now I have to do tagging in such a way that, Region 1 picks all sub-accounts and region 2 picks only 2 sub-accts out of the available sub- accts.

RegionAccountSub-Account
1ABC*
2DEFB1
B2

Could anyone please help me on this?

Thanks in advance,

Vidhya

1 Reply
Not applicable
Author

It'd look something like this:

TABLE_ALL_SUBS:

LOAD Region, Account

Resident Origin

Where Sub-Account = '*';

Outer Join (TABLE_ALL_SUBS)

LOAD Distinct Sub-Account

Resident Origin;

Concatenate(TABLE_ALL_SUBS)

LOAD Region, Account, Sub-Account

Resident Origin

Where Sub-Account <> '*';

Rename TABLE_ALL_SUBS to Table_final.