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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

help! I have a field in the parent table, and the same field in the child table when I concatenate I want to take the information from the field as a so. but my child table has more information than the parent table and I just want to take the information

I have a field called manager, table and table PO REAL, REAL father and my table so I have more managers in the table these PO managers more I do not want to appear, I am concatenating the tables.

I want these fields are only one and that managers have more powder does not appear in the table. And if possible how can I possibly do.

QUALIFY*;

UNQUALIFY TIPO_CC, Centro_Custos_Link, GR_CONTA,  Year, Descr_Conta, Empresa, Agrup_Neg, Month,Date,Texto2, Texto1, Descrição_Centros_Custos,Gestor, Gestores.Diretoria_N1, Gestores.Diretoria_N2,  Conta,Tipo_Valor,  Tipo_Cc, Periodo,Valor,  Gestor, CodGestor, Centro, Grupo_Desp_Cod, Local, Descrição_Grupo_Desp;

Orc_Real:

LOAD LOCAL,

     TIPO_CC                                      AS Tipo_Cc,

     //(Cod_Gestor / 1.000000)                       AS CodGestor,

     //Cod_Gestor,

     Centro                                      AS Centro, 

     //Empresa                                  AS Empresa,

     C_CUSTO                                       AS Centro_Custos_Link,

     (GRUPO_DESP / 1.000000)                      AS Grupo_Desp_Cod,

     GR_CONTA,

     Conta                                          AS Conta,

     Orcamento_Sap.Grupo_Centro_Custo, 

     Orcamento_Sap.Divisao,

     Orcamento_Sap.N_Documento,

     Orcamento_Sap.Ano_Exercicio,

     Periodo,

      //Year(( '01' & '/' & "Periodo" & '/' & "Orcamento_Sap.Ano_Exercicio" )) as Year,

     date(( '01' & '/' & "Periodo" & '/' & "Orcamento_Sap.Ano_Exercicio" ), 'DD/MMM/YYYY') AS Date,

     month(( '01' & '/' & "Periodo" & '/' & "Orcamento_Sap.Ano_Exercicio" ))                AS Month,

     year(( '01' & '/' & "Periodo" & '/' & "Orcamento_Sap.Ano_Exercicio" ))                AS Year,

     Orcamento_Sap.ContraPartida,

     Orcamento_Sap.Valor_moeda_objeto              AS Valor_Real,

     Orcamento_Sap.Valor_moeda_objeto             AS Valor,

     Orcamento_Sap.Tipo_Valor                     AS Tipo_Valor,

     Orcamento_Sap.Linha_Lacamento,

     Orcamento_Sap.Texto2                         AS Texto2,

     Orcamento_Sap.Texto1                         AS Texto1,

     Orcamento_Sap.Dta_Lancamento,

     Orcamento_Sap.Dta_Efetiva,

     //YEAR(Orcamento_Sap.Dta_Efetiva)             AS Year,

          //year(Orcamento_Sap.ano) as anosap,

     Orcamento_Sap.Usuario_Nome,

     //Orcamento_Sap.Descr_Classe_Custo,

     Contas.DESCR_CONTA as Descr_Conta, 

     Grupo_Contas.DESCRIÇÃO,

     [Grupo_Despesas.DESCRIÇÂO GRUPO]             AS Descrição_Grupo_Desp,

     //Matriz_carga.CONCEPTO,

     Centros_Custos.País,

         // Centros_Custos.País,

     Centros_Custos.Empresa                     AS Empresa,

     //Centros_Custos.Empresa_xls,

     UPPER([Centros_Custos.Descrição CeCo])     AS Descrição_Centros_Custos,

     Centros_Custos.Sustentabilidade,

     //[Centros.Descrição Centro]                 AS Centro_Descr,

     [Centros.Descrição Centro],

     //Centros.Empresa_xls,

     [Centros.Descrição Empresa],

     Gestores.Gestor                             AS Gestor,

     Gestores.Gestor,

     Gestores.Diretoria_N1,

     Gestores.Diretoria_N2,

     //Tipo_CC.DESCR_TIPO_CC,

     [Locais.Descrição Local]                      AS Local,

     Agrup_Negocio.AGRUP_NEGOCIO                 AS Agrup_Neg

     //Matriz_carga.CONCEPTO as Concepto       

FROM

Orcamento_Sap.qvd

(qvd);

//Where GRUPO_DESP <> '999';

Concatenate

LOAD

     Grupo                                     AS Grupo_Desp_Cod,

    Cod_Gestor                                  AS CodGestor,

     TIPO_CC                                      AS Tipo_Cc,

     PO.Identificação                              AS Identificação_PO,

     PO.Empresa                                     AS Empresa,

     PO.Centro                                      AS Centro,

     PO.Descr_Centro                              AS Centro_Descr,

      PO.Descr_Centro                              AS PO.Descr_CentroXLS,

     Centro_custo                                 AS Centro_Custos_Link,

     UPPER(PO.Denominação_de_objeto)              AS Descrição_Centros_Custos2,

     PO.LOCAL                                      AS Local,

     PO.Gestor                                      AS Gestor,

     // PO.Gestor,

     //PO.Classe_de_custo                          AS Conta,

     PO.Descr_classe_custo                          AS Descr_classe_custo,

     PO.Descrição_Grupo                          AS Descrição_Grupo_Desp,

     PO.Denomin_da_conta_de_contrapartida        AS Denomin_da_conta_de_contrapartida_PO,

     PO.texto1                                      AS Texto1,

     PO.texto2                                      AS Texto2,

     //PO.Texto_de_cabeçalho_de_documento          AS Texto_de_cabeçalho_de_documento_PO,

    // PO.Descrição_da_conta_de_contrapartida      AS Descrição_da_conta_de_contrapartida_PO,

     PO.Denominação                              AS Denominação_PO,

     PO.Período_orig,                                                             

     PO.Valor_moeda_objeto                          AS Valor_PO,

     PO.Valor_moeda_objeto                          AS Valor,

     PO.Tipo_Valor                                  AS Tipo_Valor,

     PO.Tipo                                       AS ANO3,

     year(PO.Date2)                              AS Year,

     month(PO.Date2)                             AS mes2,

     date(( '01' & '/' & "PO.Período_orig" & '/' & "PO.Tipo" ), 'DD/MMM/YYYY') AS Date,

     month(( '01' & '/' & "PO.Período_orig" & '/' & "PO.Tipo" ))                AS Month,

      year(( '01' & '/' & "PO.Período_orig" & '/' & "PO.Tipo" ))                AS ano,

      UPPER([Centros_Custos.Descrição CeCo])              AS Descrição_Centros_Custos,

           Agrup_Negocio.AGRUP_NEGOCIO             AS Agrup_Neg,

     Gestores.Diretoria_N1,

     Gestores.Diretoria_N2,

     Conta as Conta,

     Contas.DESCR_CONTA as Descr_Conta,

     Contas.GR_CONTA as GR_CONTA

     //Matriz_carga.GRUPO_CONTA as GR_CONTA,

    // Matriz_carga.CONCEPTO as Concepto

FROM

PO.qvd

(qvd);

//where Grupo <> '999';

0 Replies