SQL Server Analysis Services

Columns in Data Mining Models

Columns define the attributes that the mining algorithm uses to discover patterns. Each column has a set of properties that control how the algorithm treats the data.

Column Name Data Type Role Continuous? Key Column? Missing Value Treatment
CustomerIDintKeyNoYesIgnore
AgeintPredictorYesNoAverage
Gendernvarchar(10)PredictorNoNoMode
IncomemoneyPredictorYesNoAverage
PurchaseHistorynvarchar(max)PredictorNoNoIgnore
ResponseintTargetNoNoIgnore

MDX Example: Selecting Column Information


SELECT
    {[Measures].[Column Cardinality],
     [Measures].[Column Avg Length]}
ON COLUMNS,
    {[Column].[CustomerID],
     [Column].[Age],
     [Column].[Gender],
     [Column].[Income],
     [Column].[PurchaseHistory],
     [Column].[Response]}
ON ROWS
FROM [MiningModel];

This query retrieves metadata for each column in the MiningModel object.

Related Topics