EXPANDSINGLE
Basic Overview
Description | Adds a new column to the Node for the specified Level(s), containing only the given value(s). If the value(s) are not found in the Level(s), the result will be empty. Supports multiple Level–Values pairs and value lists. |
Signature | EXPANDSINGLE(Node, Level1, Value(s)1,[ Level2, Value(s)2,] ...) |
Parameters |
|
Example
Basics
Input: Node =
Value |
|---|
1.1 |
Output = EXPANDSINGLE('Node', "Year", "2015")
Year | Value |
2015 | 1.1 |
Output = EXPANDSINGLE('Node', "Year", "2015", "Product Group", "Cars")
Year | Product Group | Value |
2015 | Cars | 1.1 |
Output = EXPANDSINGLE('Node', "Year", "2015", "Product Group", ["Cars", “Trucks”])
Year | Product Group | Value |
2015 | Cars | 1.1 |
2015 | Trucks | 1.1 |
One time Tax Relief in 2019
Node Base Taxation
Year | Value |
|---|---|
2018 | 1,000 |
2019 | 1,000 |
2020 | 1,000 |
2021 | 1,000 |
Node Relief Value
Value |
|---|
500 |
Node Relief Expanded = EXPANDSINGLE('Relief Value', "Year", "2019")
Year | Value |
|---|---|
2019 | 500 |
Tax Total= Base Taxation - Relief Expanded
Year | Value |
|---|---|
2018 | 1,000 |
2019 | 500 |
2020 | 1,000 |
2021 | 1,000 |
Example with lower level dimensions
With defined hierarchies, it is enough to specify the lowest level.
Hierarchy: Product Group, Product Line, Product
Node Quantity
Value |
|---|
500 |
Node Model T Black Sales = EXPANDSINGLE('Quantity', "Product", "Max T 3")
Product Group | Product Line | Product | Value |
|---|---|---|---|
Cars | Sedans | Max T 3 | 500 |