Skip to main content
Announcements
See why Qlik was named a Leader in the 2024 Gartner® Magic Quadrant™ for Data Integration Tools for the ninth year in a row: Get the report
cancel
Showing results for 
Search instead for 
Did you mean: 
srinivas1921
Contributor III
Contributor III

how to sort amount values when forced to zero some of values based on condition?

Hi All,

I have created a pivot table with fields are Customer No.,Customer name,Product_status and Amount_1, Amount_2.

as per our requirement we need to force to '0' for all Amount_1 values where Product_Status = closed and we have implemented but the sorting was incorrect as below.

Please suggest a solution on this.

Intial Report results and sorting needs to be done based on Amount (descending order):-

Customer No.Customer NameProduct_StatusAmount
101AAAclosed524
202BBBbooked430
303CCCclosed322
401DDDbooked230

results after applying condition:-

Customer No.Customer NameProduct_StatusAmount
101AAAclosed00
202BBBbooked430
303CCCclosed00
401DDDbooked230

expected Results:

Customer No.Customer NameProduct_StatusAmount
202BBBbooked430
401DDDbooked230
101AAAclosed0
303CCCclosed0
3 Replies
sunny_talwar

Would you be able to share a sample of what you are trying to do?

Anil_Babu_Samineni

After loading you are getting Product_Status has 0 Append. Is that is correct / Wrong enter

Match([Customer No.], 202,401,101,303)

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
lancemayhew
Contributor
Contributor

Click on the "Amount field" under the sort tab in the properties. Sort this field by Numeric Value.

It seems that your expected results are not sorting by this.