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: 
MarcellSzeles
Contributor II
Contributor II

Pivot display top 10 items with master measure

Hi Everyone,

I have a pivot table which is (in my opinion) is not a basic one - I'd like to display only Top 10 items based on calculations.

Please find a sample below:

Screenshot 2024-05-03 112616.png

This pivot is displaying response timeliness for specific customers per week.

The measure is set up for a master dimension:

MarcellSzeles_0-1714728704871.png

The "Top Opportunity Timeliness" master measure is set as follows:

 

Avg(
If( [oppList.reqWeek.YearWeek] = [weeksTable.YearWeek] and 
    [weeksTable.YearWeek] >= (WeekYear(vCompareWeeks) * 100 + Week(vCompareWeeks)) and
    [weeksTable.YearWeek] <= (WeekYear(vCurrentWeekStart) * 100 + Week(vCurrentWeekStart)) and
    Not(IsNull([oppList.SalesQuote])),
    [timelinessTable.Stage_Complete]
    )
)

 

 

However the list is ordered based on a different master dimension which is just taking a look at the opportunity count per customer per week (Top Opportunity Count):

 

=Count(
	If(	[oppList.reqWeek.YearWeek] = [weeksTable.YearWeek] and
    	[weeksTable.YearWeek] >= (WeekYear(vCompareWeeks) * 100 + Week(vCompareWeeks)) and
        [weeksTable.YearWeek] <= (WeekYear(vCurrentWeekStart) * 100 + Week(vCurrentWeekStart)),
    [oppList.oppID])
)

 

 

How would it be possible to format the dimension that only top 25 will be displayed (based on Top Opportunity Count)?

 

Thank you in advance!

Labels (1)
1 Reply
MarcellSzeles
Contributor II
Contributor II
Author

Bumping this so I might get some recommendations!

Thank you in advance!