Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
marr
Contributor
Contributor

Ayuda!

Tengo este código y me da fallo a la hora de la carga en Month

No ubico el error.

¿Me podrían ayudar?

IND_VAL_MANUALES:

CARGAR AutoNumero ('2023' & MES) COMO IND_VAL_AÑOMES,
'2023' COMO IND_VAL_AÑO,
MES COMO IND_VAL_MES,
ID_INDICADORES COMO IND_VAL_ID_INDICADORES,
PERSPECTIVA COMO IND_VAL_PERSPECTIVA,
VALORES COMO IND_VAL_VALORES
DE-----

AuxAño:
cargar distinto
max( IND_VAL_AÑO) Como AñoMax,
min( IND_VAL_AÑO) Como AñoMin
residente IND_VAL_MANUALES;

let VAñoMax= FieldValue('AñoMax',1);
let VAñoMin= FieldValue('AñoMin',1);

drop table AuxAño;
//Generar números de mes
MonthNumbers:
LOAD
Month,
Monthnumber
INLINE
[Month, Monthnumber
Enero, 1 Febrero, 2 Marzo, 3 Abril, 4 Mayo, 5 Junio, 6 Julio, 7 Agosto, 8 Septiembre, 9 Octubre, 10 Noviembre, 11 Diciembre, 12 ];
for i=1 to 12
Meses:
load '$(i)' As Mes ,
MonthNumbers.Monthnumber AS MesNum RESIDENT MonthNumbers WHERE MonthNumbers.Month = Upper(MonthName($(i)));
next i

for j=VAñoMin to VAñoMax
AñosAux:
load '$(j)' As Año
autogenerate 1;
next j


AuxAños:
noconcatenate
Load Año
resident AñosAux;
left join
load Mes, MesNum
resident Meses;

Mesa abatible Meses;
mesa desplegable AñosAux;

IND_VAL_AñoMes:
carga AutoNumber(Año & MesNum) As IND_VAL_AÑOMES,
Num(Año) As IND_AÑO,
MesNum As IND_MES
residente AuxAños;

mesa baja Aux Años;

Labels (1)
  • Other

1 Reply
Lucas_Gatling
Support
Support

What is the error message  when the reload fails?

If the issue is solved please mark the answer with Accept as Solution.