Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Not applicable

How to create expression with multiple "options"

Hi all!

I'm trying to write an expression that will bring the results for all of my data that was collected at the following facilities: HMail, HPrint and WM.  These facilities are independent, i.e. only 1 facility can be tied to each data point.

I used the Set Analysis Wizard and tried the following

Count({$<[QID_Data.Incident Type]={'Internal Issue'},[QID_Data.Facility Entered]={'WM'}>}{$<[QID_Data.Incident Type]={'Internal Issue'},[QID_Data.Facility Entered]={'HMail'}>}{$<[QID_Data.Incident Type]={'Internal Issue'},[QID_Data.Facility Entered]={'HPrint'}>}[Action #])

The equation is treating the data like they all have to match.  How can I write it so that my results will bring me anything that contains HMail -or - HPrint - or WM?  If I were to use the "Exclusion" piece, I would need it to exclude "CH" and "LF".

Thanks in advance!

Meg

Tags (2)
1 Solution

Accepted Solutions
MVP
MVP

Re: How to create expression with multiple "options"

Can you try this:

Count({$<[QID_Data.Incident Type] = {'Internal Issue'}, [QID_Data.Facility Entered] = {'WM', 'HMail', 'HPrint'}>} [Action #])

3 Replies
MVP
MVP

Re: How to create expression with multiple "options"

Can you try this:

Count({$<[QID_Data.Incident Type] = {'Internal Issue'}, [QID_Data.Facility Entered] = {'WM', 'HMail', 'HPrint'}>} [Action #])

Not applicable

Re: How to create expression with multiple "options"

thank you!

danansell42
Contributor III

Re: How to create expression with multiple "options"

Hi Meg

I know the + sign works as an OR operator.

I think the following is what you're looking for...

Count({$<[QID_Data.Incident Type]={'Internal Issue'}>+<[QID_Data.Facility Entered] = {'WM','HMail','HPrint'}>} [Action #])

Thanks

Dan

Community Browser