Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
pgalvezt
Specialist
Specialist

advice about calender

Hello,

I have this table. I don´t have date field just field like enero febrero within ammounts. Any advice how can I create a calender in QlikView without data field. The idea is when I clic in calendar shows enero febrero and so on...

Thanks!

Data:

LOAD

  Codigos,

   Enero,

  Febrero,

  Marzo,

  Abril,

  Mayo,

  Junio,

  Julio,

  Agosto,

  Septiembre,

  Octubre,

  Noviembre,

  Diciembre,

  TOTAL,

  Anterior,

  %

FROM datos\Raw.xlsx (ooxml, embedded labels, table is Hoja1);

5 Replies
Gysbert_Wassenaar

Try using the crosstable function:

Data:

CrossTable(Month,Value,4)

LOAD

  Codigos,

  TOTAL,

  Anterior,

  %,

  Enero,

  Febrero,

  Marzo,

  Abril,

  Mayo,

  Junio,

  Julio,

  Agosto,

  Septiembre,

  Octubre,

  Noviembre,

  Diciembre 

FROM datos\Raw.xlsx (ooxml, embedded labels, table is Hoja1);


talk is cheap, supply exceeds demand
SunilChauhan
Champion
Champion

Try this

Data:

Crosstable(Month,Data,4)

LOAD

  TOTAL,

  Anterior,

  %,

  Codigos,

   Enero,

  Febrero,

  Marzo,

  Abril,

  Mayo,

  Junio,

  Julio,

  Agosto,

  Septiembre,

  Octubre,

  Noviembre,

  Diciembre

FROM datos\Raw.xlsx (ooxml, embedded labels, table is Hoja1);

assuming  Enero is January (imean first month of the Year).

  You will get month from here

then using makedate you can create your calender

or its better for you to provide sample qvw file.

hope this helps

Sunil Chauhan
pgalvezt
Specialist
Specialist
Author

Hi guys thanks for your replys,

Sunil I attached a sample for better comprenhenssion.

Thanks!

Not applicable

Hey Pablo,

Maybe you can try using cross table to convert these month fields to field values.

What is cross table? Where it can be used?

SunilChauhan
Champion
Champion

Try This,

Data:

Crosstable(Month,data,18)

LOAD

  Cuenta,

  If(Cuenta='31010301','Material',

  If(Cuenta='31010304','Maquinaria',

  If(Cuenta='31010302','Personal',

  If(Cuenta='31010303','Gastos Generales')))) as Cuenta_Descr1,

  //CodSubCuenta,

  Upper(CodSubCuenta) as CodSubCuenta,

  Cod as Cod_CC,

  Descripcion_Cuenta,

  If(Descripcion_Cuenta='Mat y Equipos Impl.Proy.','Material',

  If(Descripcion_Cuenta='Costo Maquinarias','Gastos Generales',

  If(Descripcion_Cuenta='MO Implementacion Proy.','Personal',

  If(Descripcion_Cuenta='Otros Costos Implem.Proy','Maquinaria',

  If(Descripcion_Cuenta='Gtos Grles Depto. de Vta','Maquinaria'))))) as Cuenta_Descr,

  Subcuenta as SubCuenta,

  [Centro Costo],             

  Text(Proy.) as Proyecto,

  Entidad,

  If(Entidad=8000,'1','2') as Empresa,

  Enero,

  Febrero,

  Marzo,

  Abril,

  Mayo,

  Junio,

  Julio,

  Agosto,

  Septiembre,

  Octubre,

  Noviembre,

  Diciembre,

  TOTAL,

  Anterior,

  %

FROM datos\Data.xlsx (ooxml, embedded labels, table is Hoja1);

Data1:

LOAD

  Cod_Cuenta as Cuenta,

  Cuenta as Cuenta_Desc,

  Cod_General,

  General,

  Cod_SubCuenta as CodSubCuenta

FROM [datos\Data 1.xlsx] (ooxml, embedded labels, table is Hoja1);

Calender:

Load Month,

makedate(Year(Today()),Month,1) as calDate,//I assuming data of 2014 Your take Your year Inplace  if you have //somewhere of Year(Today())

Year(makedate(Year(Today()),Month,1)) as CalYear

Resident Data;

Hope this helps

Sunil Chauhan