Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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

1 Solution

Accepted Solutions
Gysbert_Wassenaar

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

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.