Sets or updates the value filter.
Syntax
Parameters
- levelOrAttributeUniqueName
- The affected attribute or hierarchy level.
- constraint
- The value filter's constraints.
Return Value
A reference to this instance after the operation has completed.
Example
The following code demonstrates how to create the value filter.
| C# | Copy Code |
|---|
using (ILayoutActions la = pivotView.BeginLayoutUpdate("Set Value Filter"))
{
string attribute = "[Order Date].[Date]";162>
string measure = "[Measures].[Total Product Cost]";
// add some attribute to the Column
la.AppendField(attribute, ShelfKind.ColumnShelf)
// set value filter that excludes all authrs with order count between 10 and 100
.SetFilter(attribute, Value.WithMeasure(measure).NotBetween(10, 100))
.Commit();
} |
Requirements
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
See Also