Hi everyone,
I’m struggling with displaying ‘N/A’ for null values in my pivot table. Here’s my setup:
Problem:
- I have a pivot table with a column ‘value%’ that contains numeric values (percentages) and null values
- When a value is null, it means that the KPI is not applicable for that specific site_code
- I want to display ‘N/A’ instead of blank cells for these null values
What I’ve tried:
- I’ve set up custom formatting for the ‘value%’ field in the pivot table
- In the formatting settings, I’ve specifically set “Format null values as: N/A”
- I’ve verified in the dataset that these values are indeed null (see screenshot 3)
- I’ve also tried creating a calculated field to convert values to strings with ifelse(isNull({value%}), ‘N/A’, toString({value%})), but this doesn’t work because:
- The field must be placed in the ‘Value’ section of the pivot table
- The ‘Value’ section only accepts numeric fields for aggregations (avg, sum, count, etc.)
- String fields are not compatible with this requirement
Current behavior:
- The null values still appear as empty cells in the pivot table (see screenshot 1:
) - The custom format settings show that ‘N/A’ is configured correctly (see screenshot 2:
) - The dataset preview confirms these are genuine null values (see screenshot 3:
)
Has anyone encountered this issue or knows how to properly display ‘N/A’ for null values in a pivot table’s value field?
Any help would be greatly appreciated!
Best regards