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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

I have problems with the following script.

Good afternoon to QlikView Community.

I am a student at the University Santiago de Cali, I live in the Country: Colombia in the City: Santiago de Cali. I am developing the Graduation Project. I would appreciate your help, see the book  QlikView Reference Manual - Book I: Installation and Script.

But fails to fix.

I have problems with the following script.

Buenas tardes a la Community QlikView.

Soy estudiante de la Universidad Santiago de Cali, vivo en el Pais: Colombia en la Ciudad: Santiago de Cali. Estoy en desarrollo con el  Proyecto de Grado. Agradeceria su ayuda, consulte el Libro QlikView: Manual de Referencia - Libro I: Instalación y Script.

Pero no logre solucionarlo.

Tengo problemas con el siguiente Script.

//  Pestaña PERIODO

Periodo:
LOAD IdPeriodo,
left(Periodo,4) as Año,
Right(Periodo,1) as LetraPeriodo,
Periodo,

     Fecha
FROM
[..\Elaboración del Anteproyecto 2012\Informacion IAPM\Microsoft Excel 97-2003\consolidado.xls]
(
biff, embedded labels, table is [Table 2$]);


//  Pestaña PROGRAMA

Programa:
LOAD IdPrograma,
Programa
FROM
[..\Elaboración del Anteproyecto 2012\Informacion IAPM\Microsoft Excel 97-2003\consolidado.xls]
(
biff, embedded labels, header is 6 lines, table is [Table 1$]);


//  Pestaña CATEGORIAEST

CategoriaEst:
LOAD IdCateg,
CategoriaEst
FROM
[..\Elaboración del Anteproyecto 2012\Informacion IAPM\Microsoft Excel 97-2003\consolidado.xls]
(
biff, embedded labels, table is [Table 2$]);

//  Pestaña ADMISIONEST

AdmisionEst:
LOAD IdAdm,
AdmisionEst
FROM
[..\Elaboración del Anteproyecto 2012\Informacion IAPM\Microsoft Excel 97-2003\consolidado.xls]
(
biff, embedded labels, table is [Table 2$]);

//  Pestaña PROCESOEST

ProcesoEst:
///Categoria de Formularios de Estudiante PreInscritos
LOAD  IdPrograma,
IdCateg,
IdAdm,
FormPreInscNum as CantidadEst,
IdPeriodo
FROM
[..\Elaboración del Anteproyecto 2012\Informacion IAPM\Microsoft Excel 97-2003\consolidado.xls]
(
biff, embedded labels, header is 6 lines, table is [Table 1$]);


///Categoria de Formularios de Estudiante Inscritos
LOAD IdPrograma,
IdCateg1 as IdCateg,
IdAdm,
FormInscPRI as CantidadEst,
IdPeriodo
FROM
[..\Elaboración del Anteproyecto 2012\Informacion IAPM\Microsoft Excel 97-2003\consolidado.xls]
(
biff, embedded labels, header is 6 lines, table is [Table 1$]);

LOAD IdPrograma,
IdCateg1 as IdCateg,
IdAdm1 as IdAdm,
FormInscTRA as CantidadEst
IdPeriodo
FROM
[..\Elaboración del Anteproyecto 2012\Informacion IAPM\Microsoft Excel 97-2003\consolidado.xls]
(
biff, embedded labels, header is 6 lines, table is [Table 1$]);


///Categoria de Estudiante Admitidos
LOAD IdPrograma,
IdCateg2 as IdCateg,
IdAdm2 as IdAdm,
AdmitPRI as CantidadEst,
IdPeriodo
FROM
[..\Elaboración del Anteproyecto 2012\Informacion IAPM\Microsoft Excel 97-2003\consolidado.xls]
(
biff, embedded labels, header is 6 lines, table is [Table 1$]);

LOAD IdPrograma,
IdCateg2 as IdCateg,
IdAdm3 as IdAdm,
AdmitTRA as CantidadEst,
IdPeriodo
FROM
[..\Elaboración del Anteproyecto 2012\Informacion IAPM\Microsoft Excel 97-2003\consolidado.xls]
(
biff, embedded labels, header is 6 lines, table is [Table 1$]);

LOAD IdPrograma,
IdCateg2  as IdCateg,
IdAdm4 as IdAdm,
AdmitREI as CantidadEst,
IdPeriodo
FROM
[..\Elaboración del Anteproyecto 2012\Informacion IAPM\Microsoft Excel 97-2003\consolidado.xls]
(
biff, embedded labels, header is 6 lines, table is [Table 1$]);


///Categoria de Pago Financiero
LOAD IdPrograma,
IdCateg3 as IdCateg,
IdAdm5 as IdAdm,
PagFinancPRI as CantidadEst
IdPeriodo
FROM
[..\Elaboración del Anteproyecto 2012\Informacion IAPM\Microsoft Excel 97-2003\consolidado.xls]
(
biff, embedded labels, header is 6 lines, table is [Table 1$]);

LOAD IdPrograma,
IdCateg3 as IdCateg,
IdAdm7 as IdAdm,
PagFinancANT as CantidadEst,
IdPeriodo
FROM
[..\Elaboración del Anteproyecto 2012\Informacion IAPM\Microsoft Excel 97-2003\consolidado.xls]
(
biff, embedded labels, header is 6 lines, table is [Table 1$]);

QlikView Set Analysis - Expresión

Periodo 1:

Sum( {$<Año = {$(=(Año))}>} CantidadEst )

//Funciona OK


Periodo 2: 

Sum( {$<Año = {$(=(Año)-1)}>} CantidadEst )

// I need to select the Previous Year


Periodo 1 vs Periodo 2:

Sum( {$<Año = {$(=(Año))}>} CantidadEst )  - Sum( {$<Año = {$(=(Año)-1)}>} CantidadEst )

Gracias...


0 Replies