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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
EvanBarrick
Creator
Creator

Expression with multiple conditions

I am attempting to structure an expression to have the following conditions:

PRICE > '0'

BUYER_TYPE_CODE  <> 'ADULT'

BUYER_TYPE_CODE NOT LIKE 'MP*'

BUYER_TYPE_CODE  NOT LIKE 'STH*'

RETURN THE SUM OF QTY

I TRIED:

=SUM(IF(PRICE > '0' and BUYER_TYPE_CODE  <> 'ADULT' and BUYER_TYPE_CODE NOT LIKE 'MP*' and BUYER_TYPE_CODE  NOT LIKE 'STH*' , QTY))  but did not return the result I was expecting

1 Solution

Accepted Solutions
Vegar
MVP
MVP

I would recommend you to explore the possibilities off set analysis

Sum ({< PRICE = {">0"},
BUYER_TYPE_CODE -= {'ADULT',"MP*","STH*"}
>}QTY)

Read more here: https://help.qlik.com/en-US/sense/February2019/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/SetAn...

View solution in original post

1 Reply
Vegar
MVP
MVP

I would recommend you to explore the possibilities off set analysis

Sum ({< PRICE = {">0"},
BUYER_TYPE_CODE -= {'ADULT',"MP*","STH*"}
>}QTY)

Read more here: https://help.qlik.com/en-US/sense/February2019/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/SetAn...