Home : Products : Hach WIMS : Hach WIMS Client : Documentation : Function Reference : Spread Functions : Group Summary : GFWA
Q14720 - INFO: GFWA
GFWA returns the flow weighted average in the date range specified by the Offset and Grouping for a concentration variable and flow variable.

SYNTAX:

GFWA(ConcentrationVarNum,GroupOffset/StartDate,Grouping/EndDate, FlowVarNum) 

ConcentrationVarNum:  The variable number to get the average for.

GroupOffset/StartDate: Used with the Grouping parameter to set the dates to calculate the stat for.  Sets the number of Groups (set by the Grouping Parameter) to be added to set the dates.  See examples below. If this field is a date string (i.e. "07/16/2004") or refers to a cell with a date in it, it is assumed to be the start date to calculate the stat for.

Grouping/EndDate: Used to set which dates to calculate the stat for.  If the Grouping is a date literal string (i.e. "07/16/2004") or refers to a cell with a date in it, it is assumed to be the end date to calculate the stat for. Common Groupings are:

"D" Days
“M” Monthly 
"R" Report Dates
Click here for available Grouping options

FlowVarNum: The variable number of the flow variable

NOTES:

Flow Weighted Average = SUM of (Flow * Conc) / SUM of the Flows.

The Flow and Concentration variables must be of the same frequency (e.g. daily, hourly).  Only days (slots) that have both values are used in the calculation.

EXAMPLES:

GFWA(11,1,"R",1) returns the flow weighted average for variable 11 based on the flow variable 1 for the report date range. 

 

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/3/2022 5:50 PM.
Last Modified on 10/4/2022 1:02 PM.
Last Modified by Scott Dorner.
Article has been viewed 994 times.
Rated 0 out of 10 based on 0 votes.
Print Article
Email Article