FILL_NA
Overview
Description | Fills missing values (N/A) on existing level combinations after the specified dimension is pivoted into columns. |
Syntax |
|
Parameters |
|
Limitations |
|
Example
The time horizon of the project is 2025-2028.
The dimension "ProductDimension" consists of the level "Product" and the level values "Car", "Van", and "Truck".
The input node features the level values "2026", "2028" and "Car", "Van".
Input node
Year | Product | Value |
|---|---|---|
2026 | Car | 100 |
2028 | Van | 90 |
Pivoted Input node by dimension "Time"
Product | 2026 | 2028 |
|---|---|---|
Car | 100 | N/A |
Van | N/A | 90 |
FILL_NA('Input node') = FILL_NA('Input node', "Time", 0)
Product | 2026 | 2028 |
|---|---|---|
Car | 100 | 0 |
Van | 0 | 90 |
This function fills the missing level values of the finest time dimension with 0. Notice that the formula does not fill the complete time horizon (e.g. expands the years "2025" and "2027").
FILL_NA('Input node',"ProductDimension", 16)
Year | Car | Van |
|---|---|---|
2026 | 100 | 16 |
2028 | 16 | 90 |
This function fills the missing level values of the dimension "ProductDimension" with 16. Notice that the formula does not add any values available in the dimension that are not present in the input (e.g. "Truck").