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

Trying to use a variable In Set Analysis

Hello Everyone,

I have created a Variable in the Variables

vCurrentSelection =SubField(GetCurrentSelections(), ':',2)

and now I am trying to use the variable in Set analysis, but it is not working

=Count({<[Session  Name] = {"$(=vCurrentSelection)"}>}[Session  Name])

Can someone help me with this.

thanks in advance.

Naresh

43 Replies
sunny_talwar
MVP
MVP

$Field is a system generated field which stores all the field names in your dashboard.... You can add it as a dimension by typing it out.

I have created a small sample for you to check out.

Sample data

Table:

LOAD * INLINE [

    Field1, Field2, Field3, Field4

    XYZ, JAB, ASH, XYZ

    DEF, KKL, JJA, KKL

    JAB, AHH, XYZ, XYZ

];

Capture.PNG

sunny_talwar
MVP
MVP

Look here for $Field and other system generated fields

system fields

narband2778
Creator II
Creator II
Author

Thanks Sunny Paaji... Worked absolutely fine.

Learnt couple of things from you today.

Thanks,

Naresh

sunny_talwar
MVP
MVP

I am glad I was able to help you out