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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
m_perreault
Creator III
Creator III

How to get prior MaxString

Hi All,

I have a series of periods

2018Q1

2017Q4

2017Q3

.....

I want to be able to get the prior period.  So to get the max period I am using for example

Sum(Period = {"$(=Maxstring(Period))"}Balance) but I cannot use

Sum(Period = {"$(=Maxstring(Period)-1)"}Balance)

Does anyone have any ideas on how to do this?

Thanks,

Mark

1 Reply
m_perreault
Creator III
Creator III
Author

Saw this post


which suggests

Load *

Autonumber(Period) as PeriodNum

Resident table

Order by Period;

and then using PeriodNum in set analysis.