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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Apply numeric formats

Hi

I would like to know a fast way to apply numeric formats in QV. For example num(sum(sales, '###.###,##')...

For example, in Excel I can copy and paste a defined numeric format, but in QV do I have to go

expression by expression. Can I recommend a fast way to do it??

What does mean a 0 in the format pattern??

Thanks

11 Replies
Anonymous
Not applicable
Author

Hi Juan,

You could create a variable, let say vNumFormat and assign your format to that variable. Then use it the num expression:

=num(Field, $(vNumFormat))

If you need to change your format, you won't need to change each expression, but instead just change the value in the variable and it will apply wherever its contained.

About the zero, I think it has to do with the total of decimal positions that you want.

Hope it helps.

--Karla

Kushal_Chawda

If you have the expression as Sum(Sales) in straight table then go to properties -> number tab-> here you can set the various format like money, number , timestamp , date etc for that expression

Anonymous
Not applicable
Author

The zero in the format means that if that digit is zero, then the zero is displayed.  The # means that is the digit if zero it is not displayed.

vikasmahajan

go to properties -> number tab-> here you can set the various format like money, number , timestamp , date etc for that expression

copy  number format & paste with following formula

Num( sum(Sales) , '  Copy here number format')

Hope this is short way

vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
amayuresh
Creator III
Creator III

Try this, Select multiple expression in  Number Tab and apply same format for selected expression.

Anonymous
Not applicable
Author

Ok, thanks, but then copy - paste of formats like Excel does not exists?

kkkumar82
Specialist III
Specialist III

Yes, think in the way of Qlik , you can't mimic everything that you have in Excel here

engishfaque
Specialist III
Specialist III

Dear Juan,

Maintain your Number format sheet and load through loop in your App and apply whatever you want the format on your fields.

OR

Go to Properties > Tab "Number" > Select your Expression/Field Name > Number Format Settings > Select your required Format > Copy Format Pattern > Apply > OK.

Now you can apply copied format pattern with Num function. Example: =Num(Sum(Sales), '#,##0.00')

Kind regards,

Ishfaque Ahmed

Anonymous
Not applicable
Author

You can copy a whole expression including its format.  Right click it on the  expression on the Expressions tab of your source chart and copy it and then on your target chart Expressions tab go to the bottom of all your expressions, right click on the white space just below your expressions and paste it in.