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

Line chart not showing title set in expression editor in Qlik sense

Hi All,

I have a line chart showing count for a name selected in filter date wise. In case no name from filter is selected, chart depicts data for a default name set in a variable.

Now i want to show the title of that chart as the name for which it is reflecting data.

I am using the following expression to do this.

if(getselectedcount(name)=0,

     $(name_default),

     getfieldselections(name))

The filter is limited to select only one value at a time.

Other than getfieldselections(), i also modified the expression as follows:

if(getselectedcount(name)=0,

     $(name_default),

     name)

Now, instead of name, i get the following error message:

title.jpg

Can anyone let me know what i am doing wrong.

Thanks in advance.

Regards,

Disha Ahuja

1 Reply
Anonymous
Not applicable
Author

Expression looks okay & with this expression:

if(getselectedcount(name)=0, $(name_default), name)  //It shud give you '-' instaed of ')'

Any other expression you are using?