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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
OmarBenSalem
Partner - Champion II
Partner - Champion II

Number format

Hi folks,

I'm trying to format my numbers in the SCRIPT.

here's how they're now:

Capture.PNG

and I want them to be as follow:

Capture.PNG

For that, I've done as follow:

num(Current_Notional,'# ##0') as Current_Notional,


and

num(num#(Current_Notional),'# ##0') as Current_Notional,

But, this did not change a thing !

What am I doing wrong?

15 Replies
Chanty4u
MVP
MVP

for time being i tested with one value   it worked

OmarBenSalem
Partner - Champion II
Partner - Champion II
Author

Ah no ! that also did not work !

It includes all the numbers; I mean the result will be :

like Current_Notional instead of current

Capture.PNG

to achieve the current value:

here's what I've done :

num(SubField(Current_Notional,',',1),'# ##0','.',' ') as current,

OmarBenSalem
Partner - Champion II
Partner - Champion II
Author

my bad ! when I tested this another time; this is what really works as I want !

Chanty4u
MVP
MVP

Ohh is it !!!!   its nice have a nice day

Chanty4u
MVP
MVP

other way i think is that  you can remove the separator values in

envvironment variables for  thousnd and money like depends on your requriment and check

its not tested,

OmarBenSalem
Partner - Champion II
Partner - Champion II
Author

what really confuses me is :

when I use :

Num#( Field, '#', ' ', ' ') as Field

or

num(Num#( Field, '#', ' ', ' '),'# ##0') as Field,

It does not work as I want to !

But, if instead I change the Field Name; it does work !!

Num#( Field, '#', ' ', ' ') as Field2

or

num(Num#( Field, '#', ' ', ' '),'# ##0') as Field2