Avatar of Becky Edwards
Becky EdwardsFlag for United States of America

asked on 

Crystal Report detail section suppression not working.

I have placed this formula inside the  section expert, details section, common tab, suppression area, formula button.

(({V_ARPB_TX_ACTIVITY.PROC_QUANTITY})=0
   and ({@Charges})=0
 and ({@Adjs})=0
 and ({@Payments})=0
 and ({@Net}) =0)
and {?Show All Details} = "No"

The Show all details = no works perfectly by itself.
The suppress detail lines where all quantities = 0 works perfectly by itself.
But combining the two doesn't work at all.  All details show and will not suppress.
Crystal ReportsDB Reporting Tools

Avatar of undefined
Last Comment
James0628
Avatar of Haver Ramirez
Haver Ramirez

make sure of the values of the combination is cero
Avatar of Mike McCracken
Mike McCracken

Try adding ( ) around the last part

(({V_ARPB_TX_ACTIVITY.PROC_QUANTITY})=0
   and ({@Charges})=0
 and ({@Adjs})=0
 and ({@Payments})=0
 and ({@Net}) =0)
and ({?Show All Details} = "No")

If you have ?Sow All Details as a boolean parameter the AND would take precedence

mlmcc

ASKER CERTIFIED SOLUTION
Avatar of James0628
James0628

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Becky Edwards
Becky Edwards
Flag of United States of America image

ASKER

Thank you everyone.  

The right question as James points out is - how do I want the 2 tests to combine.  I don't care what happens to all the zero quantities if the detail section is suppressed.  What I want is, if the person says Yes to Show all details, that he/she ONLY sees lines of data where there is something other than all zeros.  In other words, as long as there is something in ONE of the formulas besides zero, I want the line of data to appear.  If ALL data in that line of formulas equals zero, then don't bother showing it.  

Does that make sense?

Avatar of Mike McCracken
Mike McCracken

His last formula should work then
//Suppress if all are 0
({V_ARPB_TX_ACTIVITY.PROC_QUANTITY}=0
   and {@Charges}=0
 and {@Adjs}=0
 and {@Payments}=0
 and {@Net} =0)
or
//Or suppress if show details is false
{?Show All Details} = "No"

mlmcc
Avatar of Becky Edwards
Becky Edwards
Flag of United States of America image

ASKER

Thank you again !!!!!
Avatar of James0628
James0628

You're welcome.  Glad I could help.

 James
Crystal Reports
Crystal Reports

Crystal Reports is a business intelligence application from SAP SE. It is used to graphically design data connections and report layouts from a wide range of data sources including Excel spreadsheets, Oracle, SQL Server databases and Access databases, BusinessObjects Enterprise business views, and local file-system information. Report designers can place fields from these sources on the report design surface, and can also deploy them in custom formulas (using either BASIC or Crystal's own syntax), which are then placed on the design surface. Crystal Reports also supports subreports, graphing, and a limited amount of GIS functionality.

36K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo