Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
retko1985
Creator II
Creator II

Visual Cues to display number or text instead of color.

Hello,

I want to display 0 if number in straight table is negative. And I don't want to rewrite my expression with if conditions, since its already complex. Is here a way, probably with visual cues as written in the title or any other way.

Thank you.

1 Solution

Accepted Solutions
RonaldDoes
Partner - Creator III
Partner - Creator III

Hi Retko,

You can nest If-conditions, so:

=If(

If(variable1 = 1, expression1, expression2) < 0,

0,

If(variable1 = 1, expression1, expression2)

)


should work like a charm!

View solution in original post

4 Replies
RonaldDoes
Partner - Creator III
Partner - Creator III

Hi Retko,

Usage of visual cues is strictly limited to the formatting of the cell value (color, font weight, size etc).

A simple:

=If(YOUR_EXPRESSION < 0, 0, YOUR_EXPRESSION)

should do the trick, however.

With kind regards,

Ronald

retko1985
Creator II
Creator II
Author

Hi, I am already using if condition like this:

if(variable1 = 1, expression1, expression2)

I need for those both expressions to have 0 if it is negative. Can you help me please rewrite the condition?

Thank you.

RonaldDoes
Partner - Creator III
Partner - Creator III

Hi Retko,

You can nest If-conditions, so:

=If(

If(variable1 = 1, expression1, expression2) < 0,

0,

If(variable1 = 1, expression1, expression2)

)


should work like a charm!

retko1985
Creator II
Creator II
Author

This is great, thank you.