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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
yogitamehta10
Creator
Creator

Qliksense variable

i have defined a variable in variable field

where  it says

name:vmaxmonthyear

defination:max(Date#([MONTH YEAR Calender]))

how can i use this in set anyalysis

Count({<[Calender MONTH]={"$(vMaxMonthYear)", >}[TXN UID])

Labels (1)
6 Replies
sunny_talwar
MVP
MVP

May be like this:

Count({<[Calender MONTH]={"$(=vMaxMonthYear)"}>}[TXN UID])

or

Count({<[Calender MONTH]={"$(=$(vMaxMonthYear))"}>}[TXN UID])

santiago_respane
Specialist
Specialist

Hi,

i think you only need to add the = sign as follows:

=Count({<[Calender MONTH]={"$(=vMaxMonthYear)", >}[TXN UID])


Please let me know if it helps.

Kind regards,

yogitamehta10
Creator
Creator
Author

This is not working ,

Actually i have calculate maximum year and month , so that i cna show the latest month data .

My month-year column is like this

MMM-YYYY

i'm using variable

max(Date#([MONTHYEARCalender]))

Do you think this right???

yogitamehta10
Creator
Creator
Author

This is not working ,

Actually i have calculate maximum year and month , so that i cna show the latest month data .

My month-year column is like this

MMM-YYYY

i'm using variable

max(Date#([MONTHYEARCalender]))

Do you think this right???

yogitamehta10
Creator
Creator
Author

Plaese help

santiago_respane
Specialist
Specialist

Hi Yogita,

what do you mean by not working?

Not giving the desired result? Returning Error in Expression?

Maybe you can share a sample app in order to give a more effective solution.

Kind regards,