Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Select in field with special characters

Hi All,

I'm creating a new dashboard and I have a button that is supposed to select a few parameters for the users. One of the fields I'm trying to select has a value of (blank). When I select in field and put in a search string for just (blank) nothing gets selected. I've tried

="(blank)"  and a few others with no luck. Does anyone know how I can get that working.

1 Solution

Accepted Solutions
sunny_talwar

Try this:

='?blank?'

View solution in original post

15 Replies
Miguel_Angel_Baeyens

If the blank is a space (not a null) then use " " (space, without quotes) or

=" "

equal sign and quotes included.

If the value is a true null, you will not be able to select it.

vishsaggi
Champion III
Champion III

Try this?

=  '(' & '(blank)' &')'

Not applicable
Author

Hi Miguel,

It is actually not a space...it is written out as (blank). Other areas I have if(match(Field, '(blank)')=0, Field) but that formula would not work in the search string area.

Not applicable
Author

Hi Vishwarath,

That didn't work

Miguel_Angel_Baeyens

Then try instead

=Chr(40) & 'blank' & Chr(41)

to scape the parentheses, which are valid syntax operators for search strings

vishsaggi
Champion III
Champion III

Can you share a sample to look into? Can you upload here using Use Advanced Editor ?

Not applicable
Author

Hi Vishwarath,

Please see attached. This is a qlik doc that I just created to test with.

Not applicable
Author

Tried that yesterday and it didn't work. I tried just now again, no workie

vishsaggi
Champion III
Champion III

Is this what you are going to get in your actual data as well? (blank) ?

May be try this?

LOAD IF(Left(A, 1) = Chr(40) OR RIGHT(A,1) = Chr(41), Mid(A,2,5), A) AS FieldA;

LOAD A

FROM yourdatasource;

Then use a button with Select in field name as FieldA 

and search string as = '(' & 'blank' & ')'