Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
lanlizgu
Creator III
Creator III

NPrinting Pixel Perfect format ∞ and NaN Values

In pixel perfect I have a situation on which I get ∞ and NaN values in NPrinting for a calculated field when I have nulls and zeros involved.

The think is that I would like not to show the ∞ and NaN values and just show an empty value as in other cells. I tried to change it in the expression without success.


Captura.JPG

What Can I do?

Thank you.

1 Solution

Accepted Solutions
Ruggero_Piccoli
Support
Support

Hi,

You could add an if statement that "surround" the formula so you can replace the result with the character you prefer in case of NaN or infinite.

If formula.png

Best Regards,

Ruggero

---------------------------------------------

When applicable please mark the appropriate replies as CORRECT https://community.qlik.com/docs/DOC-14806. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.

View solution in original post

4 Replies
Ruggero_Piccoli
Support
Support

Hi,

You could add an if statement that "surround" the formula so you can replace the result with the character you prefer in case of NaN or infinite.

If formula.png

Best Regards,

Ruggero

---------------------------------------------

When applicable please mark the appropriate replies as CORRECT https://community.qlik.com/docs/DOC-14806. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
lanlizgu
Creator III
Creator III
Author

Thank you, I tried before without success, will try again and let you know.

lanlizgu
Creator III
Creator III
Author

I was able to solve this with the following formula

Iif(

FORMULA

= '∞' or 'NaN'

, '' ,

FORMULA)

Thank you!

Ruggero_Piccoli
Support
Support

Great!

Thanks for sharing the correct formula; it will help other people.



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.