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: 
krish2459
Creator
Creator

Variable not working

Hi,

I'm using the beow variable in as dimension but I'm ot getting any output.

Varaible:

V_Week_Dim :: = if(Week_Liable>'$(vMax_Week_DIM)','$(vMax_Week_DIM)',Week_Liable)

 

where   

vMax_Week_DIM =:: =max({1}Week_Liable)

 

Dimension:  '$(V_Week_Dim)'

After using this variable I'm getting the below error.

 

krish2459_0-1653370918962.png

Thanks...

Labels (1)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

As below  

V_Week_Dim 

If(Week_Liable>$(vMax_Week_DIM),$(vMax_Week_DIM),Week_Liable) <<Define without leading = sign and no single quotes 

 

In chart use 

=Aggr($(V_Week_Dim),Week_Liable)

 

 

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

View solution in original post

3 Replies
krish2459
Creator
Creator
Author

Any help.

 

Thanks..

justISO
Specialist
Specialist

Hi, I guess your 'Week_Liable' field is number and you comparing > it with string '2340'. How without quotation marks?:

V_Week_Dim :: = if(Week_Liable>$(vMax_Week_DIM),$(vMax_Week_DIM),Week_Liable)

vinieme12
Champion III
Champion III

As below  

V_Week_Dim 

If(Week_Liable>$(vMax_Week_DIM),$(vMax_Week_DIM),Week_Liable) <<Define without leading = sign and no single quotes 

 

In chart use 

=Aggr($(V_Week_Dim),Week_Liable)

 

 

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