Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sk88024
Contributor III
Contributor III

display data on status basis

Hi,

I need to display the task which has never been Rejected before and went to successful directly. (Successful directly can include the initial task status as CA and okay but not rejected). 

Below is the sample data. Appreciate your help on this. Thank you

TASKTASK STATUSDATE
B1Successful22/11/2019
A1Successful21/11/2019
A1CA21/11/2019
A2Rejected26/11/2019
A2Rejected26/11/2019
A2Successful26/11/2019
A3Successful25/11/2019
B2Okay27/11/2019
B2Successful27/11/2019
B3Rejected27/11/2019
B3Okay27/11/2019
   
Output Tasks which were never rejected before  
B1  
A1  
A3  
B2  
   
1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

To get  a list of tasks (for a list box or a dimension):

Aggr(Only({<TASk = E({<[TASK STATUS] = {'Rejected'}>} TASK)>} TASK), TASK)

You can also display this as an expression by concatenating (in a text box, for example),

Concat(Distinct Aggr(Only({<TASk = E({<[TASK STATUS] = {'Rejected'}>} TASK)>} TASK), TASK), ', ')

or adding the chart/table dimensions to the Aggr():

Aggr(Only({<TASk = E({<[TASK STATUS] = {'Rejected'}>} TASK)>} TASK), TASK, <ChartDim1>, <ChartDim2>,...)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

To get  a list of tasks (for a list box or a dimension):

Aggr(Only({<TASk = E({<[TASK STATUS] = {'Rejected'}>} TASK)>} TASK), TASK)

You can also display this as an expression by concatenating (in a text box, for example),

Concat(Distinct Aggr(Only({<TASk = E({<[TASK STATUS] = {'Rejected'}>} TASK)>} TASK), TASK), ', ')

or adding the chart/table dimensions to the Aggr():

Aggr(Only({<TASk = E({<[TASK STATUS] = {'Rejected'}>} TASK)>} TASK), TASK, <ChartDim1>, <ChartDim2>,...)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Brett_Bleess
Former Employee
Former Employee

Did the response help you with your problem?  If so, do not forget to return to your post and use the Accept as Solution button on the poster's post to give them credit for the assistance which also confirms to other Community Members that it did work for you.  If you are still working upon things, leave an update on what you still need.

One very useful area for new folks is the following:

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

Lots of how-to related posts in that area that should prove very helpful to you going forward.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.