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: 
scottc00
Contributor III
Contributor III

Expression syntax

Hello.  I hope I've chosen the correct location. 

In qlikview, I am trying to create a text box that has a concatenation and a count.

=If(Count(X) > Count(Y), '+', '-' ) &  Count(X) - Count(Y)  & '  some text'

what I am looking for as a result is '+12 some text'

The result I am getting is '12 some text'

I have tried just +,-

I tried "+","-"

not sure why it wont show up.

Thanks

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try:

=If(Count(X) > Count(Y), '+', '-' ) & Text(Count(X) - Count(Y)) & ' some text'


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try:

=If(Count(X) > Count(Y), '+', '-' ) & Text(Count(X) - Count(Y)) & ' some text'


talk is cheap, supply exceeds demand
scottc00
Contributor III
Contributor III
Author

Thanks!  Worked like a charm.