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: 
ShaneMichelon1
Partner - Contributor III
Partner - Contributor III

Pages and Levels - Sorting

Hi!  I have a requirement to generate a report with Excel sheets for a set of months.  This works fine but how do I show the most recent month as the first worksheet?

Labels (1)
1 Solution

Accepted Solutions
JonnyPoole
Former Employee
Former Employee

I added a "negative" month number to the data model and 'paged' on the month number to make the highest month number value  (and most recent) month appear first. 

 

JonnyPoole_2-1709703058494.png

 

 

JonnyPoole_3-1709703124111.png

 

JonnyPoole_4-1709703217579.png

 

I noticed you can't use the <Month> table tag (otherwise it repeats of course) so I created a new expression to place at the top of each page to display the month

JonnyPoole_6-1709703516989.png

 

When running the template in PDF mode, the pages come in ascending order based on the negative month number which means highest (most recent) month first

JonnyPoole_5-1709703388196.png

 

Please note this older post provided the solution which is still valid in Tabular Reports  https://community.qlik.com/t5/Qlik-NPrinting/How-to-sort-the-way-Pages-appears/td-p/1269550

 

View solution in original post

2 Replies
JonnyPoole
Former Employee
Former Employee

I added a "negative" month number to the data model and 'paged' on the month number to make the highest month number value  (and most recent) month appear first. 

 

JonnyPoole_2-1709703058494.png

 

 

JonnyPoole_3-1709703124111.png

 

JonnyPoole_4-1709703217579.png

 

I noticed you can't use the <Month> table tag (otherwise it repeats of course) so I created a new expression to place at the top of each page to display the month

JonnyPoole_6-1709703516989.png

 

When running the template in PDF mode, the pages come in ascending order based on the negative month number which means highest (most recent) month first

JonnyPoole_5-1709703388196.png

 

Please note this older post provided the solution which is still valid in Tabular Reports  https://community.qlik.com/t5/Qlik-NPrinting/How-to-sort-the-way-Pages-appears/td-p/1269550

 

ShaneMichelon1
Partner - Contributor III
Partner - Contributor III
Author

Thanks and sorry for the delay in replying.  I didn't realize someone had replied.  The only issue with that technique is that the sheet names will be numeric instead of the text I want (ie I want to see Jan 23, Feb 23, Mar 23, etc).