If a value is null I want my text to display 'N/A'
If a value is null I want my text to display 'N/A'
I have a text field that receives a numeric value. I have a conditional set on the field to display the value in different colors depending on the number. If it is returned as Null, I'd like to be able to display 'N/A.' I thought this would be as simple as setting a conditional where if the value is null to assign the expression 'N/A'. With this condition in place it still displays a 0. How can I fix this?
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: If a value is null I want my text to display 'N/A'
Hello,
You can use the following expression:
{IIF(source.column == null, "N/A", source.column)}
Also, you should set the ConvertNulls property for the report to false.
Thank you.
You can use the following expression:
{IIF(source.column == null, "N/A", source.column)}
Also, you should set the ConvertNulls property for the report to false.
Thank you.
- Attachments
-
- Annotation 2020-09-10 103653.png (16.81 KiB) Viewed 3506 times
Re: If a value is null I want my text to display 'N/A'
This did not work. null is still being converted to 0. if I put {IIF(null == null, "N/A", source.column)} it works. It doesn't seem to be interpreting null correctly.
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: If a value is null I want my text to display 'N/A'
Hello,
Please send us a sample report with test data that reproduces the issue for analysis.
Thank you.
Please send us a sample report with test data that reproduces the issue for analysis.
Thank you.