Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
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)