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: 
ZoeM
Specialist
Specialist

If Variable is Blank, hide measure

Hello!

I am using a variable in my set analysis and I would like to hide the line values if the variable is blank.

So something like, if(isnull(vEvent),'') and the field should be hidden. When the variable has a value then the field should be shown. 

 

Thanks!

Labels (4)
1 Solution

Accepted Solutions
ZoeM
Specialist
Specialist
Author

Hi Fernando!

Thanks for the expression. What i got to work was the below as well, it is working as expected. I didnt realize that for text input I could use the len function:

 

=if(len(vEvent)>0,1,0)

Thanks for the support!

View solution in original post

2 Replies
Fernando_Fabregas
Creator II
Creator II

Hi Zoe. This should be work to hide all values of your measure:

In measure field:

   if('$(vEvent)'<>'', [your measure here] )

This is what you are looking for?

Regards, Fernando

ZoeM
Specialist
Specialist
Author

Hi Fernando!

Thanks for the expression. What i got to work was the below as well, it is working as expected. I didnt realize that for text input I could use the len function:

 

=if(len(vEvent)>0,1,0)

Thanks for the support!