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

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!
cancel
Showing results for 
Search instead for 
Did you mean: 
chriscools
Creator II
Creator II

Alternate state in formula doesn't work

Hello,

I have a formula in which i want to incorporate alternate states.

if i use it like this it works:

but like this it doesn't work:

count ( {State2} {<OrderStatus={"On hold", "Placed" ,"Cancelled" , "Closed"}>} DISTINCT OrderNumber)

Any idea on how i need to fit it in to make it work?

thanx!!

Chris

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Try like this

count ( {State2<OrderStatus={"On hold", "Placed" ,"Cancelled" , "Closed"}>} DISTINCT OrderNumber)

View solution in original post

4 Replies
swuehl
Champion III
Champion III

Try like this

count ( {State2<OrderStatus={"On hold", "Placed" ,"Cancelled" , "Closed"}>} DISTINCT OrderNumber)

vardhancse
Specialist III
Specialist III

count ( {State2} DISTINCT OrderNumber)

Not applicable

Hi Chirs,

You can use this code:

count ( {State2 < OrderStatus = {"On hold", "Placed" ,"Cancelled" , "Closed"} > } DISTINCT OrderNumber )



Ramya.




chriscools
Creator II
Creator II
Author

Thank you, this works fine!!!

grtz,

chris