Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CR COUNTING DATA WITH CONDITION

Posted on 2013-06-24
6
Medium Priority
?
239 Views
Last Modified: 2013-06-24
Hi All,

I have a report.
I want to counting string data, the counting plus 1 if there is data (not blank).
I want to do it at group footer.

How could I do it ?

Thank you.
0
Comment
Question by:emi_sastra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 39271154
It depends on what you mean by 'not blank'.

Using Insert Summary and a Count on the relevant field will ignore Null values, so you will get a true count of fields with non-null data.
However if your data could contain fields that just contain spaces or other non-printable characters then Count will not ignore those.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 39271166
Hi  peter57r,

Since its type is string.  
What I mean blank is empty string ("").

Thank you.
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 total points
ID: 39271297
Try this

Create a formula

If IsNull({YourField}) OR {YourField} = "" then
    0
Else
    1

You can then summarize that to get the count of non-null/blank fields

mlmcc
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
LVL 77

Expert Comment

by:peter57r
ID: 39271367
I would expect empty strings to be ignored in a Count summary.

Are you saying they are being included in your total?

Are you using the built-in summary functions (Insert>Summary) or have you created your own formula field?
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 39271536
-I would expect empty strings to be ignored in a Count summary.
Yes

-Are you saying they are being included in your total?
No

-Are you using the built-in summary functions (Insert>Summary) or have you created your own formula field?
I use builtin functions

Thank you.
0
 
LVL 1

Author Closing Comment

by:emi_sastra
ID: 39273294
Hi mlmcc,

It works.

Thank you very much for your help.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question