Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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
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
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.
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
Try this, Select multiple expression in Number Tab and apply same format for selected expression.
Ok, thanks, but then copy - paste of formats like Excel does not exists?
Yes, think in the way of Qlik , you can't mimic everything that you have in Excel here
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
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.