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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Pivot Table - Sort top article per month

Hi!

I started the discussion here https://community.qlik.com/blogs/qlikviewdesignblog/2016/12/12/pareto-analysis

I thought I have found a better solution for the following question: In need a Pivottable that shows the "top articles" in each Month of the Year. The sort order should be:

- Sort YEAR numerically ASC

- Sort Month numerically ASC

- Sort Articels by sum (Sales) in each month. (highest Sales first)

I have created a small example .qvw here: content.heldendaten.eu/SortPivot_TopArticlePerMonth.zip

My current solution (see yellow box in the screenshot) is quite wacky, and I hope that someone has a better solution (maybe with the new sortable aggr?)

Sorting all 3 dimensions by y-Value does not help, as then year and month get sorted the wrong way!

2016-12-29 14_32_35-QlikView x64 - Testversion - [C__Users_rva_AppData_Local_Temp_Temp1_SortPivot_To.png

Labels (1)
12 Replies
Anonymous
Not applicable
Author

Wow, that's interesting Exactly what I want!

Have you talked to someone "official" if this is how it will work in all future releases?

Wenn was it changed at all? Was the sorting changed in QV12.00 Initial Release?

Danke für deinen Einsatz heute! Guten Rutsch & VG nach Deutschland!

Roland

Anonymous
Not applicable
Author

One follow up question:

Any chance to sort the pivottable when the Month is in the columns.

Again I can achieve this using my "Aggr"-Dynamic Dimension, but I would love to avoid it!

See again attached .qvw. !

rbecher
Partner - Master III
Partner - Master III

Found it myself by playing with the options. I think if someone submits this issue (unexpected behavior) this might change in the future. So, still not reliable but a temporarily workaround..

VG und einen angenehmen Jahreswechsel nach Österreich!

Ralf

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine