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: 
chinnu123
Creator
Creator

Decimal to Number format

Hi community I have a one question regarding number format.Actually i have a field called july in that i am getting values like 4912897,0381758 but i need to get 4,912,897.And one more thing i have no chance to use that field in expression so there is no possible to change in presentation. i have only chance to write in script so any one can help please

10 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

sunny_talwar

May be this:

Num(Num#(SubField(Field, ',', 1), '##'), '#,##0') as Field

chinnu123
Creator
Creator
Author

Hi sunny,

The given script is not working fine

Regards,

Bhargav.

MarcoWedel

‌Maybe you could post a sample app to demonstrate the issue?

regards

Marco

Digvijay_Singh

Try like this -

=Num(Num#(4912897,'###0'),'#,##0')

replace constant with field value.

engishfaque
Specialist III
Specialist III

Dear Chinnu,

Here it's,

Temp:

LOAD * Inline [

  YourFieldValue

  4912897

  0381758

];

=Num(YourFieldValue, '#,##0')

A sample file is  also attached with this post, kindly find attached document.

Kind regards,

Ishfaque Ahmed

qlikviewwizard
Master II
Master II

Hi,

Please check this.

Reason for this issue is- thousand separator should be comma instead of dot,decimal should be dot instead of comma.

Hope this will help.

issue on number format

Capture.PNG

qlikviewwizard
Master II
Master II

Hi Chinnu,

Did you able to resolve the issue?

chinnu123
Creator
Creator
Author

No, I am not getting exact values I am getting zeros in % field