Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
kishorj1982
Creator II
Creator II

sorting issue in pivot table.

Team,

could you please suggest how to sort the values in descending order as per value in total column.

thanks,

5 Replies
shraddha_g
Partner - Master III
Partner - Master III

Sort by Expression,

Put Expression for Total in Expression box and put descending order

Anil_Babu_Samineni

Chck this

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
kishorj1982
Creator II
Creator II
Author

Hi,

But in your file month are not in order from most recent month to least recent month.

Regards

Kushal_Chawda

use below in Sort ->Expression

=sum(aggr(pick(Match([Not Paid in Last],'3 months','6 months','9 months','1 Year','> 1 Year'),Sum({<AR_CustomerLedger.MonthYear ={">=$(=Date(addmonths(Max(AR_CustomerLedger.MonthYear), -2), 'MMM-YYYY'))"} >} AR_CustomerLedger.OpenAmount_Resolver),  Sum({<AR_CustomerLedger.MonthYear ={">=$(=Date(addmonths(Max(AR_CustomerLedger.MonthYear), -5), 'MMM-YYYY'))"} >} AR_CustomerLedger.OpenAmount_Resolver),  Sum({<AR_CustomerLedger.MonthYear ={">=$(=Date(addmonths(Max(AR_CustomerLedger.MonthYear), -8), 'MMM-YYYY'))"} >} AR_CustomerLedger.OpenAmount_Resolver),  Sum({<AR_CustomerLedger.MonthYear ={">=$(=Date(addmonths(Max(AR_CustomerLedger.MonthYear), -11), 'MMM-YYYY'))"} >} AR_CustomerLedger.OpenAmount_Resolver),  Sum({<AR_CustomerLedger.MonthYear ={"*"}-{">=$(=Date(addmonths(Max(AR_CustomerLedger.MonthYear), -11), 'MMM-YYYY'))"} >} AR_CustomerLedger.OpenAmount_Resolver)  ),AR_CustomerLedger.MonthYear,AR_CustomerLedger.CustomerName)) 

karthikoffi27se
Creator III
Creator III

Hi Kishore

Use =Match ([Not Paid in Last],,'3 months','6 months','9 months','1 Year','>1 Year)


That will sort according to the field.


Many Thanks

Karthik