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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
vikasmahajan

Store Field Name into variable and use this variable in expression

Hi ,

Does anybody try this scenario  how to store field name into variable , and use this variable like field in expression ?

e.g    Suppose I have filed   xyz   , then I want  to store this into  vFld1   and  in set analysis I want to use the vFld1 ,

vFld1 should same line xyz.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
1 Solution

Accepted Solutions
swuehl
MVP
MVP

SET vFld1 = xyz;

(or in variable overview, create the variable).

Then, in your chart expression

=Sum( [$(vFld1)] )

View solution in original post

2 Replies
swuehl
MVP
MVP

SET vFld1 = xyz;

(or in variable overview, create the variable).

Then, in your chart expression

=Sum( [$(vFld1)] )

vikasmahajan
Author

Thanks

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.