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: 
fanninam
Creator
Creator

Most Recent Selected Month

How to write an expression equation for:

Select the sum of (full-time employees) for the most recent selected month

1 Solution

Accepted Solutions
Anonymous
Not applicable

Amber,

You need to create a new variable:

=Month(max(DateField))

And add in set analysis:

=sum({<DateField = $(vMaxMonth)>} sales)

View solution in original post

2 Replies
Anonymous
Not applicable

Amber,

You need to create a new variable:

=Month(max(DateField))

And add in set analysis:

=sum({<DateField = $(vMaxMonth)>} sales)

aarkay29
Specialist
Specialist

Create variable 'vMaxMonth'

=MonthStart(Max([DateField]))

Use this Expression

sum({<[DateField]={">=$(=$(vMaxMonth))"}>}Employees)