Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to read <NULL> 1

Status
Not open for further replies.

CrystaLv

Technical User
May 12, 2006
121
US
I am running my SQL quesry and output result is

Order Stage
123 NC
123 <NULL>
123 Completed

So I need to count how many different stages my order has.

NC-1
<NULL>-1
Completed-1

But value <NULL> doesnt get read somehow by CR9.
Is there way around?

I need to count everything that is not Completed so <NULL> and NC will have to be 2.

Thanks
 
Here's a formula for counting:

if isnull({table.stage}) or
{table.stage} = "NC" then 1

Then insert a SUM (not a count) on this.

-LB
 
It works, thanks.

Now when I have

CusID Value

123 1
123 0

111 1

112 1

I need to filter those CusIDs where Value is 0 at least once. Thanks

So in this case 123 will be eliminated and only 111 and 112 shown.
 
@Is_It_Zero:
IF {table.value} = 0 THEN 1 ELSE 0,

Report, Selection Formulas, Group...:
SUM(@Is_It_Zero, {CusID})=0

- Ido

Visual CUT & DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top