Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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
an example would be helpful ....
Hi
Please post sample
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!!
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
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.
where can i add my sample app?????
used advanced editor (and then on the lower right)
Peter
Click on " Use Advance Editor " you will get attachment option
click on yes button
should show blank table