Method: Perfion.GetSuggestedFeatureDefinitions ( … )

Analyzes an input data source, and returns a Table data with all the suggested features that are needed in Perfion before the actual data can be imported.
The suggested features matches the format used by Perfion to import features.
The analysis is trying to be clever when analyzing the data, in order to automatically detect how features need to be created e.g. whether they should be

  • Selectable / Multi-Values / Hierarchical or DataType

The method does not create the features, but it is possible to pass the returned Table directly to the IMPORT command.
Alternatively you can also use a command to export it to an Excel-file, and inspect it, and adjust any feature suggestions you determine should be defined differently. Most likely this will be a big help in creating a lot of the feature definitions needed.

Syntax

DataTable Perfion.GetSuggestedFeatureDefinitions( string sourceName, string securityGroupName, string parentNamePrefix )

Method Parameters

string sourceName

Name of a Table data source that contains the data and columns to analyze

string securityGroupName

Name of the Security group in Perfion all new features should be associated with

string parentNamePrefix

A prefix added to all parent features of the new features.
Default is blank.

To organize all the new features, you can specify a prefix, so they will all be setup to be created underneath a parent feature (within each data type).
If this value is set to 'CS', then all new string features will be created underneath a parent feature named 'CSString'.
If left blank, they will be created directly in the root underneath 'string'.

Example

Below example shows how to analyze data from the data source named 'MyData', and create a new data source named 'MyFeatures' containing all the suggested features.

var myFeatures = Perfion.GetSuggestedFeatureDefinitions( "MyData", "All", "CS" ); Sources["MyFeatures"] = myFeatures;