Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
ashmitp869
Creator II
Creator II

Variables not working as expected .?

Hi there,

The format of the variable is not working in Qlikview App.

I am using variables to work on the format , but still its holding the format even though anything is not selected.

 

ashmitp869_0-1671510244290.png

 

 

Textbox Cohort1 expression = Num($(v_g1compmeasure1_expr),$(v_compmeasure1format))

First textbox with null value  =v_g1compmeasure1_expr

 

Second textboc holding the format variable = =v_compmeasure1_format.

 

The same variable worked it other Apps as expected like when not selected its showing null but in the app its showing Error : Error in expression because of the format. how to resolve the error message.

Labels (1)
8 Replies
ashmitp869
Creator II
Creator II
Author

Hi there,

How to check if getselectedcount(_compmeasure1)  then

Num($(v_g1compmeasure1_expr),$(v_compmeasure1_format))

else 

Null

 

 

vinieme12
Champion III
Champion III

can you post a screenshot of the entire expression editor window so we can see what the expression is evaluating to?

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

ashmitp869_0-1671565563039.png

Help me with the expression in text box :-

if GetSelectedCount is Null show "-"

else

Num($(v_g1compmeasure1_expr),$(v_compmeasure1_format))

 

I tried the below expression but not working -

=if(GetSelectedCount(_compmeasure1)=1,Num($(v_g1compmeasure1_expr),$(v_compmeasure1_format)))

ashmitp869
Creator II
Creator II
Author

The problem I found is the variable v_compmeasure1_format is always '#,##0'.

ashmitp869_0-1671577816601.png

But the other apps have three of them like below 

ashmitp869_2-1671578254439.png

 

 

Thus its showing null as "-" . while when having only one format - it showing Error : Error in expression.

Any suggestion to get rid of the message Error : Error in expression and show "-" ?

 

 

 

avinashelite

Help attach the sample app , it would be easy to check . I don't see any issue with the expression need the check your app 

vinieme12
Champion III
Champion III

click on the below button(highlighted) and post a screenshot of sentire expression editor window

vinieme12_0-1671592280447.png

 

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

ashmitp869_1-1671597294771.png

 

vinieme12
Champion III
Champion III

can you post the full window of the expression editor, it shows the evaluated expression at the bottom of the editor

which is what i am after 

or as @avinashelite  suggested, post a sample app

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