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: 
Not applicable

adding "(" before an expression in a text object

Hi,

below is my expression

=if(sum(Sales)>1000000,num(Sum(Sales)/1000000,'$ ###0 MM'),num(Sum(Sales)/1000,'$ ###K'))

i want to add "(" before the output and ")" post the output.

Eg: current output is 100MM

I want it to be (100MM)

Thanks

1 Solution

Accepted Solutions
jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Hi,

try like this:

='(' & if(sum(Sales)>1000000,num(Sum(Sales)/1000000,'$ ###0 MM'),num(Sum(Sales)/1000,'$ ###K')) & ')'


regards

View solution in original post

1 Reply
jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Hi,

try like this:

='(' & if(sum(Sales)>1000000,num(Sum(Sales)/1000000,'$ ###0 MM'),num(Sum(Sales)/1000,'$ ###K')) & ')'


regards