Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Alternate State in expression condition

Hi all

I have condition in Pivot expression

SubstringCount(Concat(Qtr, '|'), 'Q1)'

and List box for Qtr (StateA) , so If I select Q1 than particular column display otherwise not.

How do I apply StateA (Alternate State) in above Substring command line

Thanks


1 Solution

Accepted Solutions
sunny_talwar

Try this:

SubstringCount(Concat({StateA}Qtr, '|'), 'Q1')

View solution in original post

6 Replies
sunny_talwar

Try this:

SubstringCount(Concat({StateA}Qtr, '|'), 'Q1')

Gysbert_Wassenaar

Add a closing single quote after Q1: SubstringCount(Concat({StateA}Qtr, '|'), 'Q1')

Or try: max({StateA}match(Qtr,'Q1'))


talk is cheap, supply exceeds demand
sunny_talwar

Good catch

Anonymous
Not applicable
Author

Works, Thanks guys

Anonymous
Not applicable
Author

Works, Thanks guys

sunny_talwar

No problem