Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
RutiTaumanRubin
Creator
Creator

Sorting in Pivot table - QV

Hello,

I have pivot table with the following coulmns (attached example):

User, Vendor Num , Vendor Name , Date , Oreder Num , Amount

I want to sorting the table by the totals of field amount (expression field) group by User,Vendor Num , Vendor Name , Date.

The field that exists in sort Tab are (attached): Order Num , User , Vendor Num , Date , Vendor Name.

I have tried to insert in sort by Expression :

Aggr(Sum({<Year=>} OrderAmount_$(vCurrency) ) /$(vPrecision) ,User,Vendor Num , Vendor Name , Date)

But it doesn't sorting...

Could you please advise?

Thank you!

1 Reply
Sergey_Shuklin
Specialist
Specialist

Hello, Ruti!

The result of "aggr(sum(... " is the set of aggregated fields, in your instance it is values of sum aggregated by specified fields. It can be siutable within dimensions. Nor expressions.

Try to use "sum(aggr(..." or "sum(aggr(sum(...".