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: 
Not applicable

Problem with set analysis last year

Hello,

I am trying to put a set analysis last year with to selections and it misses.

Sum ({<Año={$(AñoActual) -1}  , Mes={$(MesActual)}>} IMPORTE2)

The actual comma separating Año and Mes (Year and Month) is detected wrong.

Need help is for the job, thank you!

1 Solution

Accepted Solutions
marthacano01
Partner - Creator
Partner - Creator

Hi Ciro.

Try this:

Sum ({<Año={$(=$(AñoActua) -1)}  , Mes={$(MesActual)}>} IMPORTE2)

View solution in original post

3 Replies
marcus_sommer

It's probably a format-issue. Try something like this:

Mes={'$(MesActual)'} or Mes={$(=num($(MesActual))} or Mes={MesActual}

- Marcus

marthacano01
Partner - Creator
Partner - Creator

Hi Ciro.

Try this:

Sum ({<Año={$(=$(AñoActua) -1)}  , Mes={$(MesActual)}>} IMPORTE2)

Not applicable
Author

Works like a charm.

Thank you very much!