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

Creating Flag ! ?

Hi,

I have a scenario wherein, I have Rule_Set, ID_no, Sys_Key.

Rule_SetID_noSys_Key
Rule112341A
Rule123451B
Rule234561A
Rule345671C

There is another Table (a Mapping Load) which has Certain Rule_Set and Sys_Key Defined. like;

Rule_SetSys_Key
Rule11A
Rule21A

The requirement is , the  ID_no should be fetched , for the Rules mentioned in the Mapping Load Table for the Sys_Key, If the rule is not mentioned, then all the Sys_Key should be fetched. thus the result should be;

Rule_SetID_noSys_Key
Rule112341A
Rule23456

1A

Rule3

45671C

The actual app has a complex data, hence Association is not the solution.

I was thinking of creating the Flag , but it somehow is feting the 'ID_no 3456' in this case  for the condition where I am trying to get the rules not mentioned in the Mapping Table.

Appreciate  any help!

Thanks !

12 Replies
Kushal_Chawda

PriyankaSR‌ have tried the script I suggested?

Not applicable
Author

Hi Kush,

Appreciate your reply.

Yes, this way I am able to get the Rules mentioned ine Mapping Table by Inner Join.

But somehow didn't get the part to fetch all other cases .

To be specific the Condition ' where not Exists(Rule_Set)', how can I use it on the Original Table as mentioned ?

Can you pls explain this part ?

Thanks !!

senpradip007
Specialist III
Specialist III

If you reach your desire goal, close this thread by choosing correct or helpful to learn others.