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: 
SkinkUSA
Contributor
Contributor

Previous Month

Hi there, I am new to Qlik and have a very simple table I am working on. My question is, in the table below, how would I have the second visit volume column show the previous month volume? So if I was filtered for June for example, how could I get the second column to show May? Thanks in advance.

Visit Type   MonthYear   Visit Volume   Visit Volume

Flu Shot     June                10                    ?

Nurse Visit June                15                    ?

Labels (2)
1 Reply
TimvB
Creator II
Creator II

The following function will set the field MonthYear to last month:

Sum({$<MonthYear = {$(=Month(AddMonths(Max(Date),-1)))}>} [Visit Volume])