Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
ritvik4BI
Partner - Contributor III
Partner - Contributor III

Qlik Sense Month Function

Hi Experts!

I have a question. I am creating a variable vMaxMonth which gives me the latest month in MMM format from the CalenderDate field.

The expression that i am writing is :$(=month(max(CalenderDate))) 

But this is not working. Kindly suggest another expression......

3 Replies
Vegar
MVP
MVP

Do you need the dollar expansion? Why can't the variable expression just be month(max(CalenderDate), 'MMM' )? 

Is CalendarDate recognised as a numeric /date? What is the output of just using max<CalendarDate)?  Does it return a value? 

How are you using the variable in the application? Is it a part of a larger expression or is it solely for presenting the name of the latest date?

 

ritvik4BI
Partner - Contributor III
Partner - Contributor III
Author

@Vegar ,

Pardon the photo quality..but check it out. I want output as Mar without any error........

Ksrinivasan
Specialist
Specialist

hi,

variable below to get max month in format 'MMM'

create variable as below expression, Dattee= your date field

Ksrinivasan_0-1612705340810.png

and call in dim as below

Ksrinivasan_1-1612705441988.png

result is in Max month if 02-02-2021 it shows as FEB

 

ksrinivasan