Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to do a conditional count
Message
De
27/05/2003 20:47:29
 
 
À
22/05/2003 19:14:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Divers
Thread ID:
00791701
Message ID:
00793327
Vues:
23
I will give it a try Wednesday night and let you know.

Thank you.


>So, can you do...
>
>COUNT(CASE WHEN Date = somethingYouWant THEN Date ELSE null END)
>
>???
>
>BOb
>
>
>>You are correct it will ignore nulls. The problem is that the field that I need to do a distinct count on will always be populated. I need the count to be based on the date field. The dates maybe the same but are mostly different dates.
>>
>>NOI1234-00 Null
>>NOI1234-00 Null
>>NOI1234-00 2003-05-12 00:00:00.000
>>NOI1234-00 2003-04-12 00:00:00.000
>>
>>The formula would return 1 in the about example and 2 in the example below.
>>
>>NOI1234-00 Null
>>NOI1234-00 Null
>>NOI1234-00 2003-05-12 00:00:00.000
>>NOI5678-00 2003-04-12 00:00:00.000
>>
>>
>>
>>
>>>>I need a formula to populate a running total variable with a distinct count of a field when another field (on the same record) is not null
>>>>
>>>>Something like
>>>>
>>>>Distinct Count(pocnum) where dreceived is not null
>>>>
>>>>
>>>>Your help is greatly appreciated.
>>>
>>>If you create a count total field, I think it will already ignore nulls.
>>>
>>>BOb
Fred Lauckner

You know, it works on my computer. I don't know what your problem is.

.Net aint so bad.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform