Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to pass the Brand = Hakko into my expression ?

Hi All

=If(Count({<BRAND= {'HAKKO', 'BECKHOFF'}>} DISTINCT BRAND) >1, 1, 0)

Now i like to let user select the BRAND_A by them self , instead of now the brand name if fix on HAKKO. So user can choose any brand they like.

Can some one share with me how to modify the expression , so that it can become flexible.

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Paul, try this:

=If(Count({<BRAND+={'BECKHOFF'}>} DISTINCT BRAND) >1, 1, 0)


HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

10 Replies
tresesco
MVP
MVP

Remove the set part to allow user selection in  BRAND field, like:

=If(Count(DISTINCT BRAND) >1, 1, 0)

sujeetsingh
Master III
Master III

See the sample

Not applicable
Author

Hi All

Both of you get me wrong , my need is i still want to keep the BECKHOFF on my below expression :-

=If(Count({<BRAND= {'HAKKO', 'BECKHOFF'}>} DISTINCT BRAND) >1, 1, 0)

I want to see how you use $ sign to pass the BRAND value to 'HAKKO'

Hope some one can advise me.

Paul

tresesco
MVP
MVP

Can you please elaborate your requirement in words ?

Not applicable
Author

Hi Paul........ PFA As of my understand i done this please check BUY column and let me know

Not applicable
Author

Hi tres

This morning Jagan help me on the below post , his expression work fine for only those customer buy Hakko and Beckhoff . But now i want to make it flexiable , user may want to select Red Lion or mitsubishi brand instead of hakko..( so that i don't need to create many table)...... Hope you can understand my requirement. 

http://community.qlik.com/thread/100493

Not applicable
Author

Hi Sir

Yes i did look at your buy column. but it is not correct , i give you 2 table which show the correct result.

jonathandienst
Partner - Champion III
Partner - Champion III

Paul, try this:

=If(Count({<BRAND+={'BECKHOFF'}>} DISTINCT BRAND) >1, 1, 0)


HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

WOW you again hit the jackpot. Thank