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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
nicolai_moller
Contributor
Contributor

Finding occurences of events

Hi

I have 3 fields:

ProcessArea     ProcessProduct     Date

P1                   A                         1/1-13

P1                   B                         2/22-13

P1                   C                         2/24-13

.

P2

.

P(n)

In each processArea, the process should allways start with product A, then B, and then C, as shown in the table.

How do I find all the occurences of where ex. product B has been produced before product A in each processAreas?

thanks

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

In a straight or pivot table with ProcessArea as dimension you can try this expression: if(FirstSortedValue(ProcessProduct, Date) = 'B' , 'B before A').

edit: maybe this is better as it catches more cases: if(min({<ProcessProduct={'B'}>}Date)<min({<ProcessProduct={'A'}>}Date),'B before A')


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

In a straight or pivot table with ProcessArea as dimension you can try this expression: if(FirstSortedValue(ProcessProduct, Date) = 'B' , 'B before A').

edit: maybe this is better as it catches more cases: if(min({<ProcessProduct={'B'}>}Date)<min({<ProcessProduct={'A'}>}Date),'B before A')


talk is cheap, supply exceeds demand