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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
pgalvezt
Specialist
Specialist

Last Month Help

Hi, Im trying to get the last month period. I have this but is not working.

sum({$< Año={'$(xAñoMax)'}, Mes={'$(xMesMax)'}, Period= >} Sum(If(Field1 <> 1, Total)))

Thanks.

11 Replies
Sokkorn
Master
Master

Hi,

Try this:

Sum({$<Año={$(=xAñoMax)},Mes={$(=xMesMax)},Period= ,Field1-={1}>} Total)

Make sure

Año and xAñoMax -> have same format

Mes and xMesMax -> have same format

Regards,

Sokkorn

Not applicable

Lo que debes hacer es crear una variable que calcule la fecha máxima

vMaxPeriodo = Max(Periodo)

y utilizar esta variable en el Análisis de conjuntos

Sum({<Periodo = {'$(vMaxPeriodo)'}>} Total)