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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Probleme with where function

I would like to create a table with only the data which has the same ID than an other table.

The Solver table contains ID ans the service where in took only one service (GCE_RS)

The activités table contains all data about activity with ID but no service. There are too many ID here because it's the id of all services.

I want to load this table with only the id collected from the solver table.

I tried with : Where [N Incident] solver_case_id

i tried with differents ways with the where fonction, with or without the table name, but no way to succes...

I need your help please

Stéphane

/////////////////////////////////////////////////////////////

Solver:

LOAD solver_case_id as [N Incident],
    
solver as Service
FROM
[\\s-vm-qvw-01\SM7\p_solver_table_GCE_RS.qvd]
(
qvd)
where solver like ('GCE_RS') ;


////////////////////////////////////////////////////////////////// Create activity table with Only the id from the solver table!

Activités:
LOAD
 
solver_case_id as [N Incident],
    
DATESTAMP as [Date mouvement],
    
OPERATOR as Opérateur,
     T
YPE as Statut,
    
date(if(TYPE = 'Closed', DATESTAMP, if(previous(solver_case_id) = solver_case_id, previous(DATESTAMP), today() ))) as [Date fin]
FROM
[\\s-vm-qvw-01\SM7\activity_GCE_RS.qvd]
(
qvd)

where [N Incident] solver_case_id ; <- the problem is in this line

1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

In the load script for Activités table, change the where clause from

where [N Incident] solver_case_id ;

to

where exists([N Incident], solver_case_id);


View solution in original post

2 Replies
nagaiank
Specialist III
Specialist III

In the load script for Activités table, change the where clause from

where [N Incident] solver_case_id ;

to

where exists([N Incident], solver_case_id);


Not applicable
Author

Yes!

Thank you very much