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

Set analysis; use Field as Filter

hi,

iam a rookie. in set Analysis, i often use them but useally copy and past or with help of the Toolbox.

i'm looking for for the Syntax or possibility to use a field as filter in a set Analysis Expression.

iam trying like this

Only({$<"VendorNo"="b-VendorNo">}"Price")

the 2 VendorNo. are 2 different fields in 2 different Tables. i want the "Price" where the 2 fields are matching.

there is already a Key between a the VendotNo and a "a-VendorNo"

now i want to list the Price of the B-Vendor in the same list.

hope my bad english dont scare you away...

1 Solution

Accepted Solutions
jerem1234
Specialist II
Specialist II

You may be able to get away with the p() function.


Only({$<VendorNo=p([b-VendorNo])>}Price)


Hope this helps!

View solution in original post

13 Replies
giakoum
Partner - Master II
Partner - Master II

Only({$<VendorNo=[b-VendorNo]>} Price)

MK_QSL
MVP
MVP

Only({$<VendorNo={'b-VendorNo'}>}Price)

PrashantSangle

Hi,

Try this

Sum({<VendorNo={B-VendorNo}>}Price)

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
jvitantonio
Luminary Alumni
Luminary Alumni

Hello Hien,

Put this as  a Dimension like:

=If([VendorNo]=[b-VendorNo], [b-VendorNo])

And in your expression use:

=sum(Price)

JV

alexandros17
Partner - Champion III
Partner - Champion III

Unfortunately you cannot compare 2 fields in set analysys but you may compare a field and a value or a rage of values;

so you may write field1 =  {'$(=max(field2))'} but you cannot field1 = {field2}

jerem1234
Specialist II
Specialist II

You may be able to get away with the p() function.


Only({$<VendorNo=p([b-VendorNo])>}Price)


Hope this helps!

Not applicable
Author

thank for replies.

i tried all. but didnt work.

now i trying to use the max-Expression like allesandro wrote. the VendorNo r all 5-digits Numbers so ...should work?

giakoum
Partner - Master II
Partner - Master II

you better post a sample application, otherwise this may go on for ever

Not applicable
Author

0101.JPG.jpg

hope this help..

first list got the Artikel.no. the main-vendor and the alternativ-vendor

second list got the Price of all vendors.

the are already linked with the main-vendor. and Artikel.no.

iam looking for a way to Show them in one list:

like

Artikelnr.     Kreditornr.     Ek-Preis     A-Kreditornr.     Ek-Preis

1062407     730189          62,14€        970279              109,09€