Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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)