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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
ishanbansal1204
Contributor III
Contributor III

Current month of current year

Hi Experts,

I have a situation where i have to find out the values for current month of current year , current month of previous year.

for the current year the query was

COUNT(DISTINCT{<MON={'$(=max(MON))'},YR={'$(=max(YR))'}>}ID)

but i am getting the value as 0. Is there anything that i am missing. Please provide your feedback.

5 Replies
agigliotti

let's try replacing ' with ".

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
qlik4asif
Creator III
Creator III

are you getting values for Max month and Maxyear?

Try to check by placing in Text box

ishanbansal1204
Contributor III
Contributor III
Author

I am not getting values for any of the condition. its a zero.

ishanbansal1204
Contributor III
Contributor III
Author

I did but Negative. Still the same value.

qlik4asif
Creator III
Creator III

What is the format of month and year

Try to place Month in list box and

=Max(Month) as expression in Text Object