Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 241
  • Last Modified:

CR COUNTING DATA WITH CONDITION

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
emi_sastra
Asked:
emi_sastra
  • 3
  • 2
1 Solution
 
peter57rCommented:
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
 
emi_sastraAuthor Commented:
Hi  peter57r,

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

Thank you.
0
 
mlmccCommented:
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
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

 
peter57rCommented:
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
 
emi_sastraAuthor Commented:
-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
 
emi_sastraAuthor Commented:
Hi mlmcc,

It works.

Thank you very much for your help.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now