Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Highlighted
ramanarayan
New Contributor III

How to customize list box to display latest 3 quarters

Attached is a sample qlikview document. We need to be able to customize the Qtr list box to be able to show the latest 3 quarters. The data will keep appending and at all the time this list box should only show the latest 3 quarters.

 

Thanks,

Ram

Labels (1)
1 Solution

Accepted Solutions
MVP
MVP

Re: How to customize list box to display latest 3 quarters

One list box expression could be like:

=Aggr(If(Rank(SubField(Qtr, '-',2)&SubField(Qtr, '-',1))<4, Qtr), Qtr)
2 Replies
MVP
MVP

Re: How to customize list box to display latest 3 quarters

One list box expression could be like:

=Aggr(If(Rank(SubField(Qtr, '-',2)&SubField(Qtr, '-',1))<4, Qtr), Qtr)
ramanarayan
New Contributor III

Re: How to customize list box to display latest 3 quarters

can this expression be slightly altered to display the selected quarter + 2 previous quarters?