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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
rafael5958
Creator
Creator

button / macro select expression value in expression/ straight table

Hi, I have an straight table like that:

Nameexpression
XXXX3
AAAAA3
BBBB2
DDDD2
SSSS2
JJJJJJJ2
QQQQQQQQQ1
WWWWW1
EEEEEE1
RRRRRRR1

 

What I need is to create a button or macro to select the expression values higher than 1, so it would reflect in other graphic.

the expression is:

count({$<TIPO_TITULARIDADE={'2-Titularidade diferente'},CB-={'TAR','EST'},CAD_NOME-={'NÃO INFORMADO','NA','',NULL}>} distinct ID)

 

How could I do that?

Labels (1)
1 Solution

Accepted Solutions
Frank_Hartmann
Master II
Master II

see attached qvw.

In your real data you need SelectInFieldAction for Field ID

and as search string try this:

 

='=count({$<TIPO_TITULARIDADE={'&chr(39)&'2-Titularidade diferente'&chr(39)&'},CB-={'&chr(39)&'TAR'&chr(39)&','&chr(39)&'EST'&chr(39)&'},CAD_NOME-={'&chr(39)&'NÃO INFORMADO'&chr(39)&','&chr(39)&'NA'&chr(39)&','&chr(39)&''&chr(39)&',NULL}>} distinct ID)>1'

 

 

Unbenannt.png

hope this helps

View solution in original post

3 Replies
Frank_Hartmann
Master II
Master II

see attached qvw.

In your real data you need SelectInFieldAction for Field ID

and as search string try this:

 

='=count({$<TIPO_TITULARIDADE={'&chr(39)&'2-Titularidade diferente'&chr(39)&'},CB-={'&chr(39)&'TAR'&chr(39)&','&chr(39)&'EST'&chr(39)&'},CAD_NOME-={'&chr(39)&'NÃO INFORMADO'&chr(39)&','&chr(39)&'NA'&chr(39)&','&chr(39)&''&chr(39)&',NULL}>} distinct ID)>1'

 

 

Unbenannt.png

hope this helps

rafael5958
Creator
Creator
Author

Didt work as expected.

"expression" is not a load field. Its a expression that only exists in the table. Thats why I dont see a way to put an action in a button.

Frank_Hartmann
Master II
Master II

see my previous, edited post

hope this helps