简体   繁体   中英

hide rows with zero value — crystal reports

I have the following table in Crystal Reports 2010:

Name------------Number----Line----Price-----InvoiceNum 

CustomerX-------800---------2------$100----------1 
CustomerX-------800---------4------$0-------------1 
CustomerX-------800---------4------$0-------------1 
CustomerX-------800---------4------$900----------1 
CustomerX-------800---------3------$0-------------1 
CustomerX-------800---------3------$0-------------1 
CustomerX-------800---------3------$1900---------1 
CustomerX-------800---------2------$0-------------1 
CustomerX-------800---------2------$0-------------1

I want to suppress the rows that are duplicates and have $0 value, so I need somethings like this:

CustomerX-------800---------2------$100----------1 
CustomerX-------800---------4------$900----------1 
CustomerX-------800---------3------$1900---------1 

At section expert if I use this formula for suppressing it will hide all rows that have Price as $0 value.
if {@Price}=0 then true else false
But I only want to hide the $0 value if there are duplicate Line numbers for same InvoiceNum.

I also tried this:

if ({@Price}=0 and {@Price}=previous({@Price})) then true else false

but it would not remove all of the zero-values, just a part.

转到报告>选择公式>记录,然后按原样选择字段

{Supplier.ClosingBalance} <>0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM