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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
eliran
Creator III
Creator III

Get field value

Hi all,

A quick question for you, I have a table of countries and one of the attributes is Region Code.

When the user selects a specific country, I would like to return the text from the region table (description).

I didn't bump in a function that receiving field value, a function like this would help in this case.

I'll appreciate any help.

Regards,

Eliran

Labels (1)
1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hei

assuming there is only one value after you selected the country

you can write this expression in the text box

=only(region Description) that way when you wo'nt select a country it won't show anything

if there is more than one value you can use

=concat(region Description,',') that way it will show all the possible values in the field sperated by comma

hop its help you

View solution in original post

3 Replies
swuehl
Champion III
Champion III

Hi,

is it not possible to link the two tables with common field name (maybe Region Code)?

Like

Table Country:

Country, RegionCode

USA, 1

Table Region:

RegionCode, Desc

1, North America

lironbaram
Partner - Master III
Partner - Master III

hei

assuming there is only one value after you selected the country

you can write this expression in the text box

=only(region Description) that way when you wo'nt select a country it won't show anything

if there is more than one value you can use

=concat(region Description,',') that way it will show all the possible values in the field sperated by comma

hop its help you

eliran
Creator III
Creator III
Author

Hi Liron,

I knew it was something easy..

Only was what I was looking for.

swuehl, they are connected of course, I just forgot how to take out the string according to selection.

Thanks.

Thanks!

Eliran.