Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
dafnis14
Specialist
Specialist

Load a variable as a field value from Excel

Hi,

Is it possible to achieve the following:

1. Set a variable in the script

2. Define the variable as a value in Excel field

3. Load the field  from Excel and have the variable's value for that field? 

  

Metric CodeMetric Name
100aaa
105bbb
107$(VParam2) & 'zzz'

Thanks!

1 Solution

Accepted Solutions
Anil_Babu_Samineni

This should work

If([Metric Code] = 107, $(VParam2) & [Metric Name], [Metric Name])

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

3 Replies
settu_periasamy
Master III
Master III

Hi,

Can you explain further with example and  expected output?

uacg0009
Partner - Specialist
Partner - Specialist

Hi Dafnis,

So what 's the value of the variable? do you want to make this variable into a input box to make a dynamic variable or something else?

I think there is other way to make this happened, but not adding the variable into the excel.

You can define the variable(for example, vtest) to some value. And in front-end, using if function : when the Metric Code = 107, then output is vtest.

Hope it can help you.

Thanks.

Aiolos

Anil_Babu_Samineni

This should work

If([Metric Code] = 107, $(VParam2) & [Metric Name], [Metric Name])

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful