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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
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
tresB
Champion III
Champion III

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

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