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

help with expression

I need to calculate the status by day , if there is one failure per day .. the status is fail ,if all statuses are success then success ..

so basically i need a new column with one status either fail or success, below is my sample data i am aggregating the data by date and concatenating the status

1.jpg

2 Replies
Anil_Babu_Samineni

May be create one line in script

If(SubStringCount(DataStatus, 'failure','failure'), 'success')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
tresesco
MVP
MVP

Try like:

If(SubStringCount(Concat(DataStatus), 'failure'),'failure', 'success')