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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Error:Error in expression: Len takes 1 parameter

Hi all,

I am new to Qlikview and my current project is my first try at developing applications in Qlikview. I am trying to find length of variables and if the length is greater than '0' then show a particular expression in graph. However, when I try to use this len() function I get the following error:

"Error: Error in expression: Len takes 1 parameter"

Could anyone please explain this behavior?

Thanks in Advance!

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You should actually show an example of your expression used to help us understanding the issue.

I assume you are expanding the variable, and it expands to something having commas, and you do this without encapsulation in single quotes:

vVar = 1, 2, 3

then don't do

=Len( $(vVar) )

instead

=Len( '$(vVar)' )

or maybe only

=Len( vVar )

View solution in original post

3 Replies
swuehl
MVP
MVP

You should actually show an example of your expression used to help us understanding the issue.

I assume you are expanding the variable, and it expands to something having commas, and you do this without encapsulation in single quotes:

vVar = 1, 2, 3

then don't do

=Len( $(vVar) )

instead

=Len( '$(vVar)' )

or maybe only

=Len( vVar )

sunny_talwar

What exactly is your expression?

Not applicable
Author

Thank you! That worked!