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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
ananyaghosh
Creator III
Creator III

How to show variable value at my text box object

Hello , I have declared my variables are as follows:-

LET vFirstText = 'My Salary';

SET vSecondText = 'My Incentives';

SET vMySalary = 1000;

SET vMyIncentives = 200;

SET vTotalSalary = vMySalary + vMyIncentives;

SET vThirdText = 'My Salary';

Now I want to show value at my text box object as:

My Salary : 1200

I have done this as =$(vThirdText) & ' ' &  $(vTotalSalary).

but it gives me an error:-

Error: Garbage after expression.

What should I do now?

1 Solution

Accepted Solutions
AbhijitBansode
Specialist
Specialist

Define you vTotalSalary variable by using LET statement like below:

LET vTotalSalary = vMySalary + vMyIncentives

and use below expression in text object:

=vThirdText&' : '&vTotalSalary

View solution in original post

3 Replies
AbhijitBansode
Specialist
Specialist

Define you vTotalSalary variable by using LET statement like below:

LET vTotalSalary = vMySalary + vMyIncentives

and use below expression in text object:

=vThirdText&' : '&vTotalSalary

ananyaghosh
Creator III
Creator III
Author

Thanks,

It is very helpful.

AbhijitBansode
Specialist
Specialist

Glad it helped you.

can you please close the thread by marking the answer correct?