Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources 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


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

Good catch

Anonymous
Not applicable
Author

Works, Thanks guys

Anonymous
Not applicable
Author

Works, Thanks guys

sunny_talwar

No problem