Class CalculationGroupTable
Calculation Group Tables are special tables that only contain a single column
Inheritance
CalculationGroupTable
Assembly: TOMWrapper.dll
Syntax
public class CalculationGroupTable : Table, ICustomTypeDescriptor, INotifyPropertyChanging, IComparable, IDescriptionObject, ILineageTagObject, IExtendedPropertyObject, ITabularPerspectiveObject, IHideableObject, ITranslatableObject, IAnnotationObject, ISynonymObject, IClonableObject, ITabularObjectContainer, IDaxObject, IDaxDependantObject, IExpressionObject, ITabularNamedObject, ITabularObject, INotifyPropertyChanged, INamedObject, ITomErrorMessageObject
Properties
CalculationGroup
The Calculation Group object owned by this Calculation Group Table
Declaration
public CalculationGroup CalculationGroup { get; }
Property Value
CalculationGroupAnnotations
Annotations on the Calculation Group object.
Declaration
public AnnotationCollection CalculationGroupAnnotations { get; }
Property Value
CalculationGroupDescription
The description of the Calculation Group object.
Declaration
public string CalculationGroupDescription { get; set; }
Property Value
CalculationGroupPrecedence
When multiple Calculation Groups are used as a filter condition, this property determines the order of evaluation.
Declaration
public int CalculationGroupPrecedence { get; set; }
Property Value
CalculationItems
Declaration
public CalculationItemCollection CalculationItems { get; }
Property Value
ErrorMessage
Gets the error message currently reported on this calculation group table.
Declaration
public override string ErrorMessage { get; }
Property Value
Overrides
MultipleOrEmptySelectionDescription
The description of the CalculationGroupExpression, visible to developers at design time and to administrators in management tools, such as SQL Server Management Studio.
Declaration
public string MultipleOrEmptySelectionDescription { get; set; }
Property Value
MultipleOrEmptySelectionExpression
The expression defined on this object will be applied to the selected measure in DAX queries, when multiple calculation items are aplied.
Declaration
public string MultipleOrEmptySelectionExpression { get; set; }
Property Value
The format string expression defined on this object will be applied to the selected measure in DAX queries, when multiple calculation items are aplied.
Declaration
public string MultipleOrEmptySelectionFormatStringExpression { get; set; }
Property Value
NoSelectionExpression
The expression defined on this object will be applied to the selected measure in DAX queries, when no calculation items are applied.
Declaration
public string NoSelectionExpression { get; set; }
Property Value
NoSelectionExpressionDescription
The description of the CalculationGroupExpression, visible to developers at design time and to administrators in management tools, such as SQL Server Management Studio.
Declaration
public string NoSelectionExpressionDescription { get; set; }
Property Value
The format string expression defined on this object will be applied to the selected measure in DAX queries, when no calculation items are applied.
Declaration
public string NoSelectionFormatStringExpression { get; set; }
Property Value
ObjectType
The type of this object (Folder, Measure, Table, etc.).
Declaration
public override ObjectType ObjectType { get; }
Property Value
Overrides
Reordering
Set to true, when multiple calculation items are going to be re-ordered as one action.
Declaration
[Browsable(false)]
public bool Reordering { get; }
Property Value
Methods
AddCalculationItem(string, string)
Adds a calculation item with the given name and expression to the calculation group table.
Declaration
public CalculationItem AddCalculationItem(string name = null, string expression = null)
Parameters
Returns
CompactLevelOrdinals()
Declaration
public void CompactLevelOrdinals()
CreateNew(Model, string)
Declaration
public static CalculationGroupTable CreateNew(Model parent, string name = null)
Parameters
Returns
FixItemOrder(CalculationItem, int)
Declaration
public void FixItemOrder(CalculationItem item, int newOrdinal)
Parameters
GetChildren()
Returns all columns, measures, and hierarchies inside this table.
Declaration
public override IEnumerable<ITabularNamedObject> GetChildren()
Returns
Overrides
GetExpression(ExpressionProperty)
Gets the specified expression from the current object.
Declaration
public override string GetExpression(ExpressionProperty expressionProperty)
Parameters
Returns
Overrides
Exceptions
GetExpressionProperties()
Gets all supported expression properties on the current object.
Declaration
public override IEnumerable<ExpressionProperty> GetExpressionProperties()
Returns
Overrides
Init()
Derived members should override this method to instantiate child objects
Declaration
protected override void Init()
Overrides
SetExpression(ExpressionProperty, string)
Sets the specified expression on the current object.
Declaration
public override void SetExpression(ExpressionProperty expressionProperty, string expression)
Parameters
Overrides
Exceptions
SetItemOrder(IList<CalculationItem>)
Declaration
public void SetItemOrder(IList<CalculationItem> order)
Parameters
Implements
Extension Methods