Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Previous' Month Value Issue

Hello,

I'm trying to get a result from the previous month. No sucess so far. Here's the expression:

count({$<ANO_MES={$(v_mes_anterior)}>}ID)

  • ANO_MES is the month's name: Jan/14,Feb/14...
  • v_mes_anterior is the variable that reveals the previouos month: =(Date(addmonths(Max(ANO_MES), -1),'MMM/YY'))
  • ID: dimension that I'm using

When I use the first expression above all can I get it's a null value. Can someone help me to solve this?

Thanks!

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

have you tried?

count({$<ANO_MES={"$(=v_mes_anterior)"}>}ID)

or

count({$<ANO_MES={'$(=v_mes_anterior)'}>}ID)

View solution in original post

5 Replies
MK_QSL
MVP
MVP

have you tried?

count({$<ANO_MES={"$(=v_mes_anterior)"}>}ID)

or

count({$<ANO_MES={'$(=v_mes_anterior)'}>}ID)

Not applicable
Author

Try this:

=Count({<ANO_MES={"$(=v_mes_anterior )"}>} ID)

maxgro
MVP
MVP

you can try with (add ' ' to your expression)

=count({$<ANO_MES={'$(v_mes_anterior)'}>}ID)

its_anandrjs

You can also try with

count({ <ANO_MES={' $(=(Date(addmonths(Max(ANO_MES), -1),'MMM/YY'))) '}>}ID)


Not applicable
Author

Yes! It worked. Thanks a lot, Manish, Massimo and Padmaja!