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

Announcements
Solving the Informatica Dilemma: On-Demand Briefing - Watch On Demand!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Getting the name from =GetFieldSelections(<TableName>.ID)

Hi, I have a straight table and some text boxes outside of it, where I want the text boxes to display the name of the client when the name OR ID is selected. I know how to get it if its the name using: =GetFieldSelections(<TableName>.Name) , but I want this textbox to display the name if even the ID is selected (<TableName>.ID). Anyone have any ideas?

Thanks!


1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try =only(<TableName>.Name)


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try =only(<TableName>.Name)


talk is cheap, supply exceeds demand
giakoum
Partner - Master II
Partner - Master II

if(getselectedcount(id) >0 or getselectedcount(name) >0 , GetFieldSelections(<TableName>.Name))

or similar

Not applicable
Author

Hi David,

can maybe just use only for this.

=Only(Name)

Once you limit down to a single name or ID, the name will display for you

hope that helps

Joe

Not applicable
Author

wow super easy many thanks!

jagan
Partner - Champion III
Partner - Champion III

Hi,

Also you can use

MaxString(Name) Or MinString(Name), if you select a value you will get the selected value otherwise it will give the max string name.

By using this you always get the answer, whether you selected or not.

Hope this helps you.

Regards,

Jagan.