C1.Olap Namespace > C1OlapField Class : WeightField Property |
'Declaration
Public Property WeightField As C1OlapField
'Usage
Dim instance As C1OlapField Dim value As C1OlapField instance.WeightField = value value = instance.WeightField
public C1OlapField WeightField {get; set;}
public read-write property WeightField: C1OlapField;
public function get,set WeightField : C1OlapField
public: __property C1OlapField* get_WeightField(); public: __property void set_WeightField( C1OlapField* value );
public: property C1OlapField^ WeightField { C1OlapField^ get(); void set ( C1OlapField^ value); }
If this property is set to null, all values are assumed to have weight one.
This property allows you to calculate weighted averages and totals. For example, if the data contains a 'Quantity' field and a 'Price' field, you could use the 'Price' field as a value field and the 'Quantity' field as a weight. The output would contain a weighted average of the data.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2