Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Variables calculation

Hi Qlik

I am trying to create a calculation with variables that looks like this:

TN/(fn+TN)

Each one of the parameters is variable that I created in variable expression (not script). Here are the calculations:

TN --> count({$<result={"tn"}>}[test ID])

fn --> count({$<result={"fn"}>}[test ID])

This calculation I trying to show in Text & Image chart like KPI (only measure). What I get is a blank window in the Text & Image chart.

What can be the problem with using the variables?

Thank you.

2 Replies
maxgro
MVP
MVP

This calculation I trying to show in Text & Image chart like KPI (only measure).

in a text object try

=$(TN) / ($(fn)+$(TN))

vinieme12
Champion III
Champion III

You need a dollar expansion for the variable to evaluate, give this and the related threads  a read to know better

The Magic of VariablesThe Magic of Variables

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