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: 
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


Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this:

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

View solution in original post

6 Replies
sunny_talwar
MVP
MVP

Try this:

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

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

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
MVP
MVP

Good catch

Anonymous
Not applicable
Author

Works, Thanks guys

Anonymous
Not applicable
Author

Works, Thanks guys

sunny_talwar
MVP
MVP

No problem