Skip to main content
Announcements
Qlik Community Office Hours - Bring your Ideation questions- May 15th, 11 AM ET: REGISTER NOW
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.

9 Replies
martin59
Specialist II
Specialist II

hi,

Have you tried something like this ?

text(round(IdUser,1))


Hope that helps you

tresesco
MVP
MVP

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
Champion

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