Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, I trying to join 3 tables "Castigo" "RecCastigo" and "ComercioCartera" the field key is Cc_Cli (Customer Code) But this Cc_Cli in "Castigo" has another name and the same thing for "RecCastigo" so I concatenated "Castigo" and Rec.Castigo" and renamed into "Castigo" the field CC_CLI as CodComercio, When I Do clic in Cod Comercio "Castigo" and " RecCastigo" Show me the real values so works fine. But I have to join another table call "ComercioCartera" This table has a Cc_Cli too when I renamed like CodComercio (Reference Circular appears) When Tried with applymap and concatenate (appears Synthetics Keys) and the values change completely. Wht I want is to do clic in "CodComercio" or "Comercio" and QlikView shows the real values. I don't want to 2 "Comercio"
Please help with this Im really stuck with this issue.
Thank you.
Sorry, I don't have data, so mistakes are very possible:
Just try to understand my idea.
Cartera:
LOAD Left(Clasificacion_Bin,2)&"-"&Periodo as Key,
Periodo,
Estado,
Cod_Bloqueo,
Vigente_Castigo,
Tipo_Cliente,
Left(Clasificacion_Bin,2) as Clasificacion_Bin,
'Tarjeta' as LineadeNegocio,
'Casa Matriz' as Sucursal,
DiasMora,
Año,
Mes,
Deuda_Total,
Num_Tarjeta_OP,
DeudaK,
Source
FROM
(
Castigo:
LOAD
CC_CLI as CodComercio,
Deuda_Castigo,
Periodo
FROM
(
Recuperacion_Castigo:
Concatenate(Castigo)
LOAD
//ApplyMap('MappingCastigos',CodComercio) as CodComercio,
CodComercio,
Año_Bsc02,
Periodo,
MontoPago as Recuperacion_Castigo
FROM
(
ComercioCartera:
LOAD
Clasificacion_Bin,
CC_Cli as CodComercio,
Comercio
FROM
(
Left Join (Castigo) LOAD * Resident Recuperacion_Castigo;
Left Join (Castigo) LOAD * Resident ComercioCartera;
TempCastigo:
NoConcatenate LOAD *,
Clasificacion_Bin&"-"&Periodo as Key
Resident Castigo;
DROP Tables Recuperacion_Castigo,ComercioCartera,Castigo;
RENAME Table TempCastigo to Castigo;
LinkTable:
NoConcatenate LOAD
Key,
Clasificacion_Bin,
Periodo
Resident Castigo;
Concatenate LOAD
Key,
Clasificacion_Bin,
Periodo
Resident Cartera;
Drop Fields Clasificacion_Bin,Periodo from Castigo, Cartera;
Thank you but still gives error.
I took off
Recuperacion_Castigo:
Concatenate(Castigo)
because qlikview doesn't found the table. But now appears "Out of Memory"
I took off
Recuperacion_Castigo:
Concatenate(Castigo)
because qlikview doesn't found the table. But now appears "Out of Memory" and qlikview fails.
One more fix:
Cartera:
LOAD Left(Clasificacion_Bin,2)&"-"&Periodo as Key,
Periodo,
Estado,
Cod_Bloqueo,
Vigente_Castigo,
Tipo_Cliente,
Left(Clasificacion_Bin,2) as Clasificacion_Bin,
'Tarjeta' as LineadeNegocio,
'Casa Matriz' as Sucursal,
DiasMora,
Año,
Mes,
Deuda_Total,
Num_Tarjeta_OP,
DeudaK,
Source
FROM
(
Castigo:
LOAD
CC_CLI as CodComercio,
Deuda_Castigo,
Periodo
FROM
(
//Recuperacion_Castigo:
Join(Castigo)
LOAD
//ApplyMap('MappingCastigos',CodComercio) as CodComercio,
CodComercio,
Año_Bsc02,
Periodo,
MontoPago as Recuperacion_Castigo
FROM
(
//ComercioCartera:
Join(Castigo)
LOAD
Clasificacion_Bin,
CC_Cli as CodComercio,
Comercio
FROM
(
TempCastigo:
NoConcatenate LOAD *,
Clasificacion_Bin&"-"&Periodo as Key
Resident Castigo;
DROP Table Castigo;
RENAME Table TempCastigo to Castigo;
LinkTable:
NoConcatenate LOAD
Key,
Clasificacion_Bin,
Periodo
Resident Castigo;
Concatenate LOAD
Key,
Clasificacion_Bin,
Periodo
Resident Cartera;
Drop Fields Clasificacion_Bin,Periodo from Castigo, Cartera;
I attached the lof qlikview file. Appears "Out Of Memory"
OK,
Try to load table by table...
I noticed it might be a problem with "-" in Key field. Replace it with '-'
Cartera:
LOAD Left(Clasificacion_Bin,2)&'-'&Periodo as Key,
Periodo,
Estado,
Cod_Bloqueo,
Vigente_Castigo,
Tipo_Cliente,
Left(Clasificacion_Bin,2) as Clasificacion_Bin,
'Tarjeta' as LineadeNegocio,
'Casa Matriz' as Sucursal,
DiasMora,
Año,
Mes,
Deuda_Total,
Num_Tarjeta_OP,
DeudaK,
Source
FROM
(
Castigo:
LOAD
CC_CLI as CodComercio,
Deuda_Castigo,
Periodo
FROM
(
//Recuperacion_Castigo:
Join(Castigo)
LOAD
//ApplyMap('MappingCastigos',CodComercio) as CodComercio,
CodComercio,
Año_Bsc02,
Periodo,
MontoPago as Recuperacion_Castigo
FROM
(
//ComercioCartera:
Join(Castigo)
LOAD
Clasificacion_Bin,
CC_Cli as CodComercio,
Comercio
FROM
(
TempCastigo:
NoConcatenate LOAD *,
Clasificacion_Bin&'-'&Periodo as Key
Resident Castigo;
DROP Table Castigo;
RENAME Table TempCastigo to Castigo;
LinkTable:
NoConcatenate LOAD
Key,
Clasificacion_Bin,
Periodo
Resident Castigo;
Join LOAD
Key,
Clasificacion_Bin,
Periodo
Resident Cartera;
Drop Fields Clasificacion_Bin,Periodo from Castigo, Cartera;
Works Until Exit Script;
Log file?
Log File