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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Variable is static in straight table?

I created a variable to use in a straight table expression. For some reason when I use it, the value doesn't change for each dimension value, but when I take the same thing that I set the variable to and put that in the expression in the table, the values do change based on the dimension. This is what the variable is set to:

=if(GetSelectedCount([Production Date]) <> 1, '-',

if(count([App Flag]) < 1, '-',

num((count(distinct if([App Flag] = 'Yes', [ID Number]))/count(distinct [ID Number])),'#,##0.00%')))

Is there anything I can do to make the variable act as a chart expression?

Thank you

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

When you define the variable in variable overview, remove the equal sign in front of the expression

The Little Equals Sign

View solution in original post

1 Reply
sunny_talwar
MVP
MVP

When you define the variable in variable overview, remove the equal sign in front of the expression

The Little Equals Sign