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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
PolBe
Contributor III
Contributor III

Keep only one line per distinct case

hi,

I am struggling for a while with the following:

I have two tables: Incoming Requests and Closed Requests

The only Field containing unique value is Request number. All other Fields can have their values changed during the Request life time. 

Incoming.PNG

Closed.PNG

Some extra info: Not all the Incoming requests are closed.

Closed table can have Fields which are not present in Incoming and the other way around.

 

Conditions:

 For each Request I want to get in the end only one line in the final table where I see:

1. Request number

2. Request entering Date + Time - the very first one 

3. Group sent to - the very first one 

4. all the other fields need to be displayed with the latest value (see example 'Cause' column) .

 

So the logic will be first to display Requests from the Closed table and show the latest values from table Closed + Fields from Table Incoming.

then add those Requests which are left (not having closed date) in the Incoming table with above conditions. 

 

Final table.PNG

 

I hope someone can help me.

 

Greetings,

Polina

2 Replies
anushree1
Specialist II
Specialist II

A sample data and desired output details could help to understand and work on the desired solution 

PolBe
Contributor III
Contributor III
Author

do you see the printscreens in my text?