隐藏零值的行 - 水晶报告

问题描述 投票:0回答:1

我在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

我想要压缩重复的行并具有$ 0值,所以我需要这样的东西:

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

在部分专家,如果我使用此公式来抑制它将隐藏价格为$ 0值的所有行。 if {@Price}=0 then true else false 但是,如果相同的InvoiceNum存在重复的行号,我只想隐藏$ 0值。

我也试过这个:

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

但它不会删除所有的零值,只是一部分。

crystal-reports sap crystal-reports-2010
1个回答
1
投票

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

{Supplier.ClosingBalance} <>0
© www.soinside.com 2019 - 2024. All rights reserved.