Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
OmarBenSalem

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?

1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

try this

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

View solution in original post

15 Replies
Chanty4u
MVP
MVP

do you want round the values?

result is different than actual?

OmarBenSalem
Author

Ah ; it's not the same cells / values! It's just an example of the format I want to achieve..

sorry for the confusion !

Chanty4u
MVP
MVP

try this

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

mdmukramali
Specialist III
Specialist III

Hi Omar,

Can you Try something like this:

Load *,

PurgeChar(Number,',') as Test,

Num(PurgeChar(Number,','),'# ##0','.',' ') as Test2

inline

[

Number

"5575226851,9277"

"5017367203,3098"

]

Thanks,

Mukram.

Chanty4u
MVP
MVP

or try this

a:load  * Inline [

Categ ,Year,Sales

Car,2014,"100677884,122"

];

result:

LOAD *

,

replace(Sales,',',' ') as new

Resident a;

OmarBenSalem
Author

This did not work

OmarBenSalem
Author

That was perfect !

OmarBenSalem
Author

This nearly worked when there is number as follow 444,22 (with ',') but with numbers without , exp: 44444; it did not !

Thank you anyway !

Capture.PNG

Chanty4u
MVP
MVP

Nice your issue resolved .