interface PivotOperationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.QuickSight.CfnDataSet.PivotOperationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsquicksight#CfnDataSet_PivotOperationProperty |
Java | software.amazon.awscdk.services.quicksight.CfnDataSet.PivotOperationProperty |
Python | aws_cdk.aws_quicksight.CfnDataSet.PivotOperationProperty |
TypeScript | aws-cdk-lib » aws_quicksight » CfnDataSet » PivotOperationProperty |
A transform operation that pivots data by converting row values into columns.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const pivotOperationProperty: quicksight.CfnDataSet.PivotOperationProperty = {
alias: 'alias',
pivotConfiguration: {
pivotedLabels: [{
labelName: 'labelName',
newColumnId: 'newColumnId',
newColumnName: 'newColumnName',
}],
// the properties below are optional
labelColumnName: 'labelColumnName',
},
source: {
transformOperationId: 'transformOperationId',
// the properties below are optional
columnIdMappings: [{
sourceColumnId: 'sourceColumnId',
targetColumnId: 'targetColumnId',
}],
},
valueColumnConfiguration: {
aggregationFunction: {
listAggregation: {
distinct: false,
separator: 'separator',
// the properties below are optional
inputColumnName: 'inputColumnName',
},
percentileAggregation: {
percentileValue: 123,
// the properties below are optional
inputColumnName: 'inputColumnName',
},
simpleAggregation: {
functionType: 'functionType',
// the properties below are optional
inputColumnName: 'inputColumnName',
},
},
},
// the properties below are optional
groupByColumnNames: ['groupByColumnNames'],
};
Properties
| Name | Type | Description |
|---|---|---|
| alias | string | Alias for this operation. |
| pivot | IResolvable | Pivot | Configuration that specifies which labels to pivot and how to structure the resulting columns. |
| source | IResolvable | Transform | The source transform operation that provides input data for pivoting. |
| value | IResolvable | Value | Configuration for how to aggregate values when multiple rows map to the same pivoted column. |
| group | string[] | The list of column names to group by when performing the pivot operation. |
alias
Type:
string
Alias for this operation.
pivotConfiguration
Type:
IResolvable | Pivot
Configuration that specifies which labels to pivot and how to structure the resulting columns.
source
Type:
IResolvable | Transform
The source transform operation that provides input data for pivoting.
valueColumnConfiguration
Type:
IResolvable | Value
Configuration for how to aggregate values when multiple rows map to the same pivoted column.
groupByColumnNames?
Type:
string[]
(optional)
The list of column names to group by when performing the pivot operation.

.NET
Go
Java
Python
TypeScript