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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Max month in count expression in qlik sense

hi All,

can any one help to apply Max(Month) in my qlik sense count expression. Means instead of mentioning MONTH='Jun' i need to apply MONTH=Max(MONTH).

Count(if (MONTH='Jun', [FieldA]) )

thanks in advance

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

How was the MONTH field created? Is it a text only field or does num(MONTH) return a number? If it does you can try count({<MONTH={"=Num(MONTH)=$(=Max(MONTH))"}>} FieldA)


talk is cheap, supply exceeds demand
tresesco
MVP
MVP

And, if your Month field has text values, you could try like:

=Count({<MONTH={"$(=Month(Max(Date#(MONTH,'MMM'))))"}>}FieldA)