Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
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)