Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

Exclude after using Where clause or other methods.

Hi Have a Table where I pull information form and place it in to the Combined table I create. I want to add the report names, which adds fine, but it also adds junk I don't want, which I can filter based on a 'Event_Type_Name' field and its row called 'Object Instance'. The junk are Object Instances.

// First I create the table from another table.

Combined:

Load

  Event_ID as Combined_EventID,

  User_Name as Combined_UserName

Resident ADS_EVENT;

//Then I add report names to it, the Object Name field has any kind of object so I have to separate the data using IDs.

NewReport2:

left join (Combined)

load

  Event_ID as Combined_EventID,

  Object_Name as Report_Names,

  Object_Type_ID as Report_ID

Resident ADS_EVENT

Where match(Object_Type_ID,'AYfjfcAV7cNPh33akDfm2RE'); 

//What I want to do after the report names have been pulled is to filter out the junk by telling the script to filter out anything that's considered an Object Instance.

Please let me know if I need to clarify more.

Thanks

Alam

5 Replies

Re: Exclude after using Where clause or other methods.

Any reason you can't add that object instance condition to your current where clause?


Where match(Object_Type_ID,'AYfjfcAV7cNPh33akDfm2RE') AND Event_Type_Name <> 'Object Instance';


talk is cheap, supply exceeds demand
Not applicable

Re: Exclude after using Where clause or other methods.

I could try that, but the Event_Type _Name field is in another table, which is why I didn't try it.

Re: Exclude after using Where clause or other methods.

Right, that won't work then until you join that field to the table.


talk is cheap, supply exceeds demand
Not applicable

Re: Exclude after using Where clause or other methods.

Yea I might dump the field in to combined? and try it.

NickHoff
Valued Contributor

Re: Exclude after using Where clause or other methods.

You could go in the script and create an indicator for an object instance, then use WHERE EXISTS(ObjIND,ObjIND)

Community Browser