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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Format numbers in textfield

Hey community I'm trying to format a number that I calculate in a textfield. It's part of a dashboard but the huge amounts just makes everything very hard to interpret. This is now divided by 1000 jsut to make it readable. But I would like to have int format on these figures, or maybe 1,2 decimals. Not needing to divide it by 1000 and using Round function.

Capture.PNG

6 Replies
avinashelite

Did you tried using the num() function

Num( field/Expression ,'#,##0 ')


https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/FormattingFunctions/Nu...

Anonymous
Not applicable
Author

use the num function around each of your fieldnames

num(yourvalue,'#.##0,0 ') -> shows 1 decimal

Not applicable
Author

=Sum({<ValueName={'Commission|Total'}>}ValueSEK)

How would you make the syntax?

mdmukramali
Specialist III
Specialist III

Dear ,

for 2 decimal

=Num(Sum({<ValueName={'Commission|Total'}>}ValueSEK),'#,##0.00')


with out decimal.

=Num(Sum({<ValueName={'Commission|Total'}>}ValueSEK),'#,##0')


Thanks,

Mukram

Not applicable
Author

Sorry i maybe explained badly but I what i want to acheive is like an int formatted.  like this 1 234 567 89 not like 123456789. Does that make it clearer?

adamdavi3s
Master
Master

Rob has a very neat way of doing this for this sort of situation.

I recently used this in the production of my KPI figures:

http://qlikviewcookbook.com/2016/05/scaling-numbers-and-dse-tips/