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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
stonecold111
Creator III
Creator III

button not working properly in qlikview

Hi qlikss,

i have straight table with field   "Sales Flag"     which has values

                                                               today

                                                                yesterday

                                                                today

                                                                yesterday

                                                                yesterday

i created button  for search string =today

it is working when it has value today and yesterday values

but when it has all values like

yesterday

yesterday...... lik this . when i click on button it should show no values. but it is showing all values not filtering anything

how can i do that .. when no today value is there it should show blank straight table

Thankss. qlikss

1 Solution

Accepted Solutions
prieper
Master II
Master II

create an island-table with all your possible "hi"-values, for which you wish to filter

Filter:

LOAD * INLINE [hi

yes

no

maybe

normal];

Data:

LOAD

hi,

....

FROM .....;

Peter

View solution in original post

27 Replies
prieper
Master II
Master II

an example would be helpful ....

Anonymous
Not applicable

Hi

Please post sample

Anonymous
Not applicable

Hi

If matching records available in Straight table then only it will filter accordingly or else that action will not work for Button

Hope it helps!!

stonecold111
Creator III
Creator III
Author

yes u got my point.. if there are no match values it should show empty table

becase my user getting confused for this

how to achieve this

Sergey_Shuklin
Specialist
Specialist

Hello, Suresh!

You can do this:

Create variable vVar with value 1 (or 0 it's doesn't matter). Then create second variable vDim with the expression:

if(vVar=1,if([Sales Flag]='today',[Sales Flag],null()),[Sales Flag]).

Then go to your straigt table and use the calculated dimension:

=$(vDim)

On button set an action External-Set Variable with condition: if(vVar=1,0,1) for variable vVar.

Now, when you'll click a button your result table will get a calculated dimension values today and nothing, or all fields. If there is no today it will return null.

stonecold111
Creator III
Creator III
Author

Capture.PNG

where can i add my sample app?????

prieper
Master II
Master II

used advanced editor (and then on the lower right)

Peter

Anonymous
Not applicable

Click on " Use Advance Editor " you will get attachment option

stonecold111
Creator III
Creator III
Author

click on yes button

should show blank table