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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
kkkumar82
Specialist III
Specialist III

Avoiding Items which doesn't have Vendor Names

Hi All,

Please find below data

 

Vendor_NameItemComponent
AFFYMETRIX INC301110-01301110-01
301110-01301110-01
AFFYMETRIX INC301130B301110-01
BERLIN PACKAGING LLC.301130B301110-01
Charter Medical301130B301110-01
301130B301110-01
105585301110-01
301110301110-01

In fact I was writing a condition like if(isnull(Vendor_Name), Item) but came to know that for eg 301130B

it should not show up as 301130B has other vendors.

The only output I should get is

105585, 301110 as they are not part of another Vendor

Attaching excel of the same

Labels (1)
22 Replies
swuehl
Champion III
Champion III

Or without an advanced search:

=Concat({<Item = e({<Vendor_Name = {"*"} >} ) >} DISTINCT Item,', ')

Show all Items that are excluded by selecting all Vendor names.

kkkumar82
Specialist III
Specialist III
Author

Is this be needed to be include in Quotes sunny

{<Item = {"=Len(Trim(Concat(DISTINCT Vendor_Name))) = 0"}>}

sunny_talwar

Hahahah yes, forgot to add the double quotes

sunny_talwar

Updated

kkkumar82
Specialist III
Specialist III
Author

Sorry Stefan, I didnt get your point here

Can you elaborate this

swuehl
Champion III
Champion III

I was just suggesting an alternative approach using the e() function in set analysis:

Set modifiers with implicit field value definitions ‒ QlikView

The expression should return the two items you are looking for:

105585, 301110

Anonymous
Not applicable

... and I think this is the most efficient approach from performance point of view!

kkkumar82
Specialist III
Specialist III
Author

Sorry all a small correction , the report is actually Components with no Vendors

I just changed the expression to

Sum({<Component = {"=Len(Trim(Concat(DISTINCT SOURCE_VENDOR_NAME))) = 0"}>}SHIPPED_AMOUNT_USD)

My Dimension are

Item, Component , Component Description

but some how both the expressions are not working and they are giving the Vendors which have components

sunny_talwar

Would you be able to share an example where it isn't working?

kkkumar82
Specialist III
Specialist III
Author

Sunny's suggestion

{<Item = {"=Len(Trim(Concat(DISTINCT Vendor_Name))) = 0"}>}


Yours


{<Item = {"=Len(Trim(Concat({<Item = e({<Vendor_Name = {"*"} >} ) >} DISTINCT Item,', '))) = 0"}>}


is this what your are suggesting Stefan