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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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 !

Labels (1)
5 Replies
qlikview979
Specialist
Specialist

Hi,

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

Anil_Babu_Samineni
MVP
MVP

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
MVP
MVP

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.