Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, I am new in qlik sense and i tried with different ways do the same thing this SQL code do for me in MS Access using Qlik Sense:
SELECT Saldo_neg_pre_gr_dw_tb.CENTRAL, Saldo_neg_pre_gr_dw_tb.TIPO_CHAMADA, Saldo_neg_pre_gr_dw_tb.SERVIÇO, [Referencia Final - Unificada].SERVIÇO
FROM Saldo_neg_pre_gr_dw_tb LEFT JOIN [Referencia Final - Unificada] ON (Saldo_neg_pre_gr_dw_tb.TIPO_CHAMADA = [Referencia Final - Unificada].TIPO_CHAMADA) AND (Saldo_neg_pre_gr_dw_tb.CENTRAL = [Referencia Final - Unificada].CENTRAL) AND (Saldo_neg_pre_gr_dw_tb.SERVIÇO = [Referencia Final - Unificada].SERVIÇO)
GROUP BY Saldo_neg_pre_gr_dw_tb.CENTRAL, Saldo_neg_pre_gr_dw_tb.TIPO_CHAMADA, Saldo_neg_pre_gr_dw_tb.SERVIÇO, [Referencia Final - Unificada].SERVIÇO
HAVING ((([Referencia Final - Unificada].SERVIÇO) Is Null));
My last attempt was this:
[SN_201701]:
LOAD [CENTRAL],
[TIPO_CHAMADA],
[SERVIÇO]
FROM [lib://Saldo Negativo/SN_201710.qvd]
(qvd)
Group By CENTRAL, [TIPO_CHAMADA], [SERVIÇO];
Left Join
LOAD [CENTRAL],
[TIPO_CHAMADA],
[SERVIÇO]
FROM [lib://Parametros/Referencia Final - Unificada.xlsx]
(ooxml, embedded labels, table is [Referencia Final - Unificada]);
Thank you for your attention.
May be this
Temp:
LOAD [CENTRAL] & '|' & [TIPO_CHAMADA] & '|' & [SERVIÇO] as Key
FROM [lib://Parametros/Referencia Final - Unificada.xlsx]
(ooxml, embedded labels, table is [Referencia Final - Unificada]);
[SN_201701]:
LOAD [CENTRAL],
[TIPO_CHAMADA],
[SERVIÇO]
FROM [lib://Saldo Negativo/SN_201710.qvd] (qvd)
Where not Exists(Key, [CENTRAL] & '|' & [TIPO_CHAMADA] & '|' & [SERVIÇO]);
DROP Table Temp;