Discussion Board for collaboration related to QlikView App Development.
I want to sort country column based on total employee count in all locations.
Country - USA
employee count in 5 locations in us is less when compared to ITA(ITALY).
So ITA Should show first in Country column
US Head Count:431---For Business Unit-API
ITA head Count 505------For Business Unit-API
here pivot table not preferable because iam going to use this table in Nprinting.Nprinting wont support pivot table.
Please find the attached qlikview file
Add a expression as Sort Expression
AGGR(sum([2017 EOY Headcount]),Country,[Business Unit])
In sort Promote this expression to the top and Sort it in a Descending Order.
From Presentation tab Hide this expression.
do you want to create the sorting based on the total employees count or on the total employees count for business unit API ??
because on the total without choosing a business unit, US should be Ranked N1
Yes I understand that.
US is ranked 1 based on the GRAND TOTAL
and ITALY is ranked 1 base on the total by BU
if you're looking for the second option so take the solution provided above by Pritam
Is this what you are after?
Created an extra expression using this expression
Aggr(NODISTINCT Sum([Actual Headcount]), [Business Unit], Country)
Used it second in the sort order and hide the expression from the presentation tab.