Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
prma7799
Master III
Master III

sorting difficulties in pivot

Hi All,

sunindia

I am facing some sorting issue with pivot table can anyone please help me.

am using dimension

1- cyclic group(DPTB)

2-

=if(aggr(rank((SUM({$<FinancialYear=,FiscalYear={$(=max(FiscalYear))},Quarter=

,[Posting Date]={">=$(=YearStart(max({$<FiscalYear={$(=max(FiscalYear),0,4)}>}[Posting Date])))<=$(=max({$<FiscalYear={$(=max(FiscalYear))}>}[Posting Date]))"}

>}[Gross Sales Amount])

-SUM({$<FinancialYear=,FiscalYear={$(=max(FiscalYear))},Quarter=

,[Posting Date]={">=$(=YearStart(max({$<FiscalYear={$(=max(FiscalYear),0,4)}>}[Posting Date])))<=$(=max({$<FiscalYear={$(=max(FiscalYear))}>}[Posting Date]))"}

>}[Sales Return Amount]))/100000),$(=GetCurrentField("DPTB")),Customer)<=$(vTopGRp),Customer,'REST')

3- State

4-month

6 Replies
Not applicable

what is the sort order you are trying to achieve?

sunny_talwar

I am facing some sorting issue with pivot table can anyone please help me.

What exactly is the issue?

ganeshreddy
Creator III
Creator III

Hi,

Put you expression in highlighted area for decreasing option.Capture.PNG

prma7799
Master III
Master III
Author

Hi Sunny,

in my pivot table am unable to get values in sorting order.

for i put in dimension

1- cyclic group DPTB

2- =if(aggr(rank( sum([Sales] )/100000),$(=GetCurrentField("DPTB")),Customer)<=$(vTopGRp),Customer,'REST')

3- State

4-Month

in  Expression

SUM ([Sales])/100000

in Sorting Tab

I put above expression as descending order

but sorting is not coming properly

see the attached

Thanks

jonathandienst
Partner - Champion III
Partner - Champion III

Your picture demonstrates the problem, but provides no information that allows diagnosis and accurate suggestions, so I suggest that you post your qvw or a representative sample.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
ganeshreddy
Creator III
Creator III

Hi qlikview7799,

I am not sure whether i understood your problem right, but try sorting in cyclic group as mentioned below. It may help you to get desired results.

Regards,

Ganesh.

Capture1.PNG