on 2013 Feb 21 4:19 PM
Hi Webi Experts!
I'm struggling here with number formatting:
I have a value in report: 234,764,97
instead I want to have: 234.765
and negative balances have to be in parentheses:
is: - 234,764,97
expected: (234.765)
there is not standard definition for the requirements I have, so I need to write a formula,and trying this:
=ToNumber(FormatNumber([Value];"##.####"))
but the result is not what I want..
Can anyone assist?
Many thanks!
Irina
P.S. if the question was already raised and answered, just give me a link, I couldnt find exactly the same question.
Request clarification before answering.
I could fix it by using custom function and modifying/creating new custom format the most appropriate number format.
KR,
Irina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Irina,
the thousands and decimal separators come from the localization settings in the preferences, you can't alter them.
For what concerns the parentheses for negative values this can be done with right click, format number
Thanks and regards,
Simone
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can choose between the document locale or the preferred viewing locale (options in Webi Rich Client or preferences in BI Launchpad) , once they are set the numbers and currencies are formatted following those preferences.
For example if i select English USA the dates will be formatted MM/DD/YYYY if i select English UK they will be DD/MM/YYYY, however you can change date format with the FormatDate() function.
For numbers same concept, except that there is no way to format the decimals and thousand separators. You can use ToNumber([String]) but at that point the number is treated as a string and useless for calculations etc.
Therefore you have to play with the locale settings.
Thanks
Simone
Replace may work but if you convert the number to a string it will become useless for calculations etc.
My suggestion is to select a number format that you need for that document and then save it with "Permanent Regional Formatting" so that it doesn't change depending on the client settings.
I will write a Wiki page some day ... hoping sooner than later....
Thanks
Hi Simone,
thanks for your help!
I was just changing preferred locale from one to another and found that german offers dots instead of commas.
BUT , it works if the value is full, for example 234.764.875,97
and as I need to have it rounded to the nearest million, and keep it meaningful for the calculations I devide it /1000000 =[Value]/1000000 and get again comma 234,77
in order to have: 234.77 I have to probably set again to english.
And still there is no way to use decimal separator and () for negative numbers ...
If you have any idea, let me know.
Thank you!
Hi Irina,
if you right click on the cell then you can select from the pop up menu Format Cell, from there you can customize the format for Positive Negative and Zero, Undefined values.
Have a look and do some testing, apart from the above limitations you should be able to get to the format you need.
Cheers
Simone
User | Count |
---|---|
80 | |
30 | |
9 | |
9 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.