Home : DDCC
Q10564 - INFO: DDCC

DDCC Returns the count of how many times a condition or comparison is true for a daily detail variable.  The count is limited to a specific portion of the day using the StartHour and StopHour inputs.

SYNTAX:

DDCC(Cx,"comp",exp,StartHour,StopHour)
where :
Cx is a conditional variable x
Comp Comparison. Any valid operator such as ">", "<", or "=". Each operator must be in quotations.
Exp is an Expression which is the value used in the comparison
StartHour defines the hour to start gathering data for the calculation, using a 24 hour time designation
StopHour defines the hour to stop gathering data, which includes data to the end of the specified hour (i.e., StopHour = 14, data will be collected until 2:59pm)

EXAMPLES:

V77 = DDCC(C72,">",3,1,10)

Returns how many times daily detail results in variable 72 are greater than 3 between 1:00 AM and 10:59 AM

 

 

Note:    Known issue. When using DDCC function in a variable you get a notification that "algebraic type not allowed" if it is preceded with +,-,/, or *. If you reverse the order and place the +,-,/, or * AFTER the function it will allow it.

Another workaround would be to use two variables.

 

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 10/26/2007 3:00 PM.
Last Modified on 10/6/2022 4:01 PM.
Last Modified by Steve Fifer.
Article has been viewed 4204 times.
Rated 6 out of 10 based on 8 votes.
Print Article
Email Article