Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Senhores, estou tentando criar uma variavel dentro do script, porem ela esta me retornando erro.
O comando que estou excutando é este abaixo:
Let vMesAnterior = '=Date(addmonths(MesAno,-1),'MMM/YYYY')' ;
Retirei as aspas simples da expressao 'MMM/YYYY', a expressao rodou sem problemas, mas sem o resultado esperado, o correto seria mar/2015, mas ele me retorna 01/03/2015.
Try this:
Table:
LOAD * Inline [
MesAno
01/15/2016
02/12/2016
];
MinMax:
LOAD Min(MesAno) as MinDate
Resident Table;
LET vMesAnterior = Date(Addmonths(Peek('MinDate'),-1),'MMM/YYYY');
Try this:
Table:
LOAD * Inline [
MesAno
01/15/2016
02/12/2016
];
MinMax:
LOAD Min(MesAno) as MinDate
Resident Table;
LET vMesAnterior = Date(Addmonths(Peek('MinDate'),-1),'MMM/YYYY');
Or this:
SET DateFormat='MMM/YY';
LET vMesAnterior = '=Date(addmonths(MesAno,-1)';
SET DateFormat='DD/MM/YYYY';
Paulo, sua dúvida foi esclarecida?
Em caso positivo, marque a resposta que te ajudou para fechar o tópico
Thanks Sunny!!!!