Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Font color and style for Expression Column value

Hi,

I have sum(Amounts) column as a Expression. My requirement is,

if sum(Amounts) has negative value , that negative value should be Red Color and that negative value in brackets like ( ).

How can i achieve this, could you please tell me Set expression and process

Thanks,

MLNR

13 Replies
krishna20
Specialist II
Specialist II

krishna20
Specialist II
Specialist II

Hi,

Goto properties -> Number Tab-> Select your Expression-> Select Integer -> In Format Pattern replace this #,##0;(#,##0)

Then

Goto Expression Tab-> Select your Expression -> Expand it by + mark. Select Text Format.Then write like this

if(sum(Sales)>=0,bllack(),Red())

Hope this helps

Regards

Krishna

senpradip007
Specialist III
Specialist III

You should close the discussion, if reached the goal, by choosing one correct or helpful answer for others to learn.

gautik92
Specialist III
Specialist III

You can also set flag for it by using this formula

If(Sum(Sales) <= 0,'qmem://<bundled>/BuiltIn/arrow_s_r.png','qmem://<bundled>/BuiltIn/arrow_n_g.png')

And select the expression and choose image and select keep aspect