Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Shows Products purchased by more than one supplier

Hello,

I wish to only show products that two suppliers are both purchasing.

ItemSupplierPrice
ABC123SUPP ABC14
ABC123SUPP EFG15
DEC123SUPP ABC12

I thus only wish to show the first two rows in my table.

So only show items which BOTH suppliers are purchasing.

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Hi Chris,

maybe

Dimensions : Item,Supplier

Expression :

If(Count(DISTINCT TOTAL <Item> Supplier) > 1, Price)

Regards,

Antonio

View solution in original post

8 Replies
antoniotiman
Master III
Master III

Hi Chris,

maybe

Dimensions : Item,Supplier

Expression :

If(Count(DISTINCT TOTAL <Item> Supplier) > 1, Price)

Regards,

Antonio

rubenmarin

Hi Chris, another option is using calculated dimensions, in example:

=Aggr(If(Count(TOTAL <Item> DISTINCT  Supplier)>1, Item), Item)

or, if you want to ignore supllier selections:

=Aggr(If(Count(TOTAL <Item> DISTINCT {<Supplier>}  Supplier)>1, Item), Item)

Based on what you want at the end and the type of chart you should decide apply the filter in expressions or in dimensions.

Not applicable
Author

Thanks a bunch. I was missing out total!

Not applicable
Author

@antoniotiman How would I amend if I added in another dimension example . Item, Supplier, Maufacturer, Price

antoniotiman
Master III
Master III

You don't need to change.

antoniotiman
Master III
Master III

Not applicable
Author

Hello,

Sorry I meant If I wanted Manufacturer to be the first column.

antoniotiman
Master III
Master III

No change