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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
nisha_rai
Creator II
Creator II

Replace the Combination Logic

Hi,

I am new in qlikview ,please help me to resolve the issue

we have one table in which we have 4 column based on the combination of 4 column we are creating the new coulmn.

I want to replace the combination logic in other one.

for example:

table1 :

   

IdLateErrorTrainingIssueFlag
1No
21Yes
3YYes
4YYes
51Yes
61YYes
71YYes
811Yes
9YYYes
101YY1Yes

want to replace the below formula if(Flag='Yes' , if (Late>=1,1,0) & if (Error='Y',2,0)& if(Training='Y',3,0)& if(Issue>=1,4,0)) as Issue_Type

now we have only 4 column then it's easy to use permutation and combination logiv but in future if the column will increase from 4 to 8 then we have to create  so many combination name manulaay is difficult.

Thanks in advance

Regards,

Nisha

20 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Load the data:

CrossTable(Issue_Type,Dummy)

LOAD * FROM ...source... WHERE Flag='Yes';

DROP FIELD Dummy;

Count the Id's: count(Id)


talk is cheap, supply exceeds demand