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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
harjedalskok
Creator
Creator

Format/Reduce a Number

Hi,

I wonder how i can format/reduce a "number" in load script.

PersonalID Has the format for example 7788991010 i would like in the script to reduce it to 778899

ive tries like

num(PersonIID, 'XXXXXX' ) as PID,

but it doesent work.

since my sollution didnt work, i would like to know how to reduce a values numbers within script.

Could anyone plz enlight me

Thx in advance.

1 Solution

Accepted Solutions
sunny_talwar

May be this

Floor(PersonIID/10000) as PID

or this

Left(PersonIID, 6) as PID

View solution in original post

3 Replies
sunny_talwar

May be this

Floor(PersonIID/10000) as PID

or this

Left(PersonIID, 6) as PID

Anil_Babu_Samineni

May be do this?

Left(PersonID, 6) as PersonID_Copy

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
harjedalskok
Creator
Creator
Author

Thx for fast reply.

This is now solved. I couldnt mark both answers as "solution".