Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Qlikandlearn
Contributor III
Contributor III

Getting error "Error:Garbage after expression" in Label field

Hi, 

In Chart object properties, using the variable in label in expression tab, when I click apply, showing this error as "Error: Garbage after expression", 

Used variable in Label field : =$(vPrevYear) & 'Total'
 VPrevYear : year-1

Can any one help here with the right syntax?

 

Thanks.

 

Labels (4)
2 Replies
Brett_Bleess
Former Employee
Former Employee

In this case going to be most helpful if you can attach the QVW file, or a sample one that has the issue, so folks can look into the data model and full properties of things, too many things in play without that to really say for sure.  If you have any sensitive fields, you can scramble those via the Settings\Document Properties\Scrambling tab prior to attaching.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
Saravanan_Desingh

Try to use with out $-expansion.

=vPrevYear & ' Total'