[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
View for computing a weighted average. The view uses 2 fields within the parent view to compute
the weighted average. The X field and weight field. In a price-volume example it calculates the
volume-weighted average price as (sum(price * volume) / sum(volume)).
Example: weighted_avg("price", "volume")
The following tables list the members exposed by the WeightedAverageView type.
Protected Fields
Name | Description | |
---|---|---|
![]() | parent |
Parent viewable to this view - directly accessible by subclasses.
(Inherited from ViewSupport.) |