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: 
brunopaulo
Partner - Creator II
Partner - Creator II

Set Analysis problem on syntax

Hi Community,

I'm trying to solve a problem using Set Analysis. I want to count the number of rows that a certain value appears.

I'm writing this way:

= Num (count ({($ <columnname = 'String'>} NrLine)

In Load I created a fuction RecNo () as NrLine.

The error it gives me is: Error in set modifier ad hoc element list: ',' or ')'


I can not find the place to put it.


Thank you for attention
Regards
Bruno Paulo


Labels (1)
4 Replies
sunny_talwar
MVP
MVP

You are missing { and } within your set modifier

=Num(Count({$<columnname = {'String'}>} NrLine)

its_anandrjs
Champion III
Champion III

Missing Parenthesis

=Num (count ({($ <columnname = {'String'}>} NrLine)


Or


=Num (if(columnname = 'String' , NrLine ) )


Anonymous
Not applicable

= Num (count ({$ <columnname = 'String'>} NrLine))


Try This

hari8088
Creator
Creator

Try this.......

Num(Count({$<columnname = {'String'}>} NrLine))