Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying Infinity% #2

Open
joggraphy opened this issue Nov 21, 2017 · 0 comments
Open

Displaying Infinity% #2

joggraphy opened this issue Nov 21, 2017 · 0 comments

Comments

@joggraphy
Copy link

joggraphy commented Nov 21, 2017

Your code fails to change the display of divide by zero to '0%'. Since java doesn't calculate as NaN this does not work.

if (vMeasure4 == 'NaN') { vMeasure4Tag = 'tags' + '0%' + 'tag';

Instead, it would be better to test like this:
if(arrayL1[vFinalWrite][6] == 0) { vMeasure4Tag = 'tags' + '0%' + 'tag';

Or maybe put in 'NaN' for consistency with other Qlik calculations.
Tim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant