Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

expression

HI Folks ,

I had question as follows  looking for solution  .

I have  data as follows   

Rules

Pan

DOB

Address

given a led checks  to it

Table 2:

Rules Value

Pan  2

DOB  3

Address 4

Pan+DOB 4

Address+Pan 5

DOB+Address 6

If User Selects PAN  then should display pan  Value

If user selects PAN and DOB  then should  PAN count , DOB count and PAN+DOB Value

How can we achieve this

I am attaching sample QV file , Please  have a look and advise me a solution

Thanks in advance !

5 Replies
qlikview979
Specialist
Specialist

Hi,

May be its not possible with out  association, in your table not having any association .

Anil_Babu_Samineni

Is this you are expecting?

Capture.PNG

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
Anonymous
Not applicable
Author

No Anil .

If User Selects PAN  then should display only  PAN    = Value is 2

If user selects PAN and DOB  then should  PAN count , DOB count and PAN+DOB  i.e Value=  2 +3+4 = 9

avinashelite

based on your data set could you please give the eg's for the only  PAN, PAN count , DOB count and PAN+DOB  ?

vinieme12
Champion III
Champion III

try below

sum({<rules = {$(=concat(DISTINCT chr(39)&'*'&Rules,'*'&Chr(39)&',')&'*'&chr(39))}>}Count)

OR create a variable for example

vRulesList = =concat(DISTINCT chr(39)&'*'&Rules,'*'&Chr(39)&',')&'*'&chr(39)

and use variable in Expression as below

sum({<rules = {$(vRulesList)}>}Count)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.