Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
ss09
Contributor III
Contributor III

Variable Expressions

WORKS=$(vTranslate('province_ps1d')) -> This gives me all my provinces for the table.

However, I would want to refer either province_ps1d or province_ps2d.

Attempt 1 - Not working

$(vScenario) = 'ps1d'
=$(vTranslate('province_' & $(vScenario)))

Attempt 2 - Not working

$(vScenario) = 'ps1d'
=$(vTranslate('province_' & '$(vScenario)'))

Labels (3)
1 Solution

Accepted Solutions
vincent_ardiet_
Specialist
Specialist

This one should work:
=$(vTranslate('province_$(vScenario)'))

View solution in original post

2 Replies
vincent_ardiet_
Specialist
Specialist

This one should work:
=$(vTranslate('province_$(vScenario)'))

Happy_Mask_Salesman
Partner - Contributor III
Partner - Contributor III

Hi.

Attempt 2 is working for me.

Where vSufijo is 'd'.

=$(vTest('ps1' & '$(vSufijo)' ))

vTest formula. If the first parameter equals 'psd1', say yes, if it doesn't, return a 'no'.

if( $1 = 'ps1d',
'yes',
'no')

Would you provide us the formula for vTranslate?

I also can suggest you to use double quotes.

PD: Sorry, didn't see Vincent answer yet.
Regards,