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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
mario-sarkis
Creator II
Creator II

Num Formatting

Dear ALL,

I need to transform an number '002' to 2

I have a field Branch code looks like '002' or '014' or '051' I need to transform it as 2,14,51

I tired num([Branch Code]) & num#([Branch Code]) it didn't work it still giving me '002' or '014' or '051'

hope that you can help with this I need to transform the above field in the script.

thank you,

1 Solution

Accepted Solutions
sunny_talwar

May be a over-arching Num() is needed after Num#()

Num(Num#([Branch Code]))

Because Num#() only helps to interpret, but the change will need Num(), right?

View solution in original post

3 Replies
sunny_talwar

Can you try this

[Branch Code] * 1 as [Branch Code]

m_woolf
Master II
Master II

num# should work. Does your field have any leading or trailing spaces? Maybe:

num#(trim([Branch Code]))

sunny_talwar

May be a over-arching Num() is needed after Num#()

Num(Num#([Branch Code]))

Because Num#() only helps to interpret, but the change will need Num(), right?