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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Convert Number to Text

In Need to convert a number to text without de decimal part.

When i try to convert with TEXT() function a number:

Text(IdUser)

i have this value 129.000000, i need only 129

any idea?

Thanks.

Labels (1)
9 Replies
martin59
Specialist II
Specialist II

hi,

Have you tried something like this ?

text(round(IdUser,1))


Hope that helps you

tresB
Champion III
Champion III

try this:

Text(Floor(IdUser))

Regards, tresesco

Not applicable
Author

Hi,

Consider the example:

Data:

LOAD * INLINE
[
EmplNo,Amount
001,129.000
002,130.000
003,154.000
004,186.000
005,169.000
];

  

=text(round(Amount))  in your expression.

This should solve your problem.

Regards,

Snehal Nabar

SunilChauhan
Champion II
Champion II

Trim('  '&abs(Amount))

or

text(Trim('  '&abs(Amount)))

hope this helps

Sunil Chauhan
Not applicable
Author

Try with this exp:

 

 

=text(left('IdUser',Index('IdUser','.')-1)) ;

Not applicable
Author

Try with this exp:

 

 

=text(left('IdUser',Index('IdUser','.')-1)) ;

Not applicable
Author

Try with this exp:

 

 

 

=text(left('IdUser',Index('IdUser','.')-1)) ;

 

Not applicable
Author

Try with this exp:

 

 

 

=text(left('IdUser',Index('IdUser','.')-1)) ;

 

Not applicable
Author

Hi,

Please mark this post as answered, If it has solved your query.

Regards,

Snehal Nabar