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: 
santhosh_k_n
Creator II
Creator II

value match function

Hi all,

I am having 2 columns and am making selection in one of the column.

I need the function to get the matched values in the second column based on first column selection.

Please guide

1 Solution

Accepted Solutions
SunilChauhan
Champion II
Champion II

I am agree with tresesco .

see the attached file

Sunil Chauhan

View solution in original post

6 Replies
MK_QSL
MVP
MVP

Please provide some sample or apps

santhosh_k_n
Creator II
Creator II
Author

Consider Below table:

Report typereport name

sheet ID

Type1report1

sheet2

Type1report2

sheet2

Type1report3sheet2
Type2report4sheet3
Type2report5

sheet3

Type2report6

sheet3

Type2report7sheet3

In above table, if i select report name i need to assign the matching report type to a variable.

say, I had selected report name = report3, then i need to assign report type - Type1 to a variable V_temp

Hope you understand

tresesco
MVP
MVP

Define your variable like:

V_temp= [Report type]

MK_QSL
MVP
MVP

Create a variable

vVar

=Only({<[report name] = {'$(=GetFieldSelections([report name]))'}>}[Report type])

Now use vVar in Text Box and Try to Select report name

its_anandrjs
Champion III
Champion III

Update now check

Write a variable like

V_temp =if(Match(GetFieldSelections([report name]),'report1','report2','report3'),'Type1',

              if(Match(GetFieldSelections([report name]),'report4','report5','report6','report7'),'Type2'))

SunilChauhan
Champion II
Champion II

I am agree with tresesco .

see the attached file

Sunil Chauhan