Numbers/Currencys rounded and decimal, etc.

Hello
I have the following values in Siebel:

€201,88
€260,10
€6.01
€252,45

The result desired here is that BI Publisher displays these exactly as Siebel.
In addition, I suppose that if we no. cents at the end, it should display, 00

When to just display the name of the field, we had problems, such as:
-Wrong number of decimal places shown.
-Symbol of the euro not displayed. (This I fixed to hardcode simply the EURO symbol in the rtf).
-No 'rounding' values correctly.

Looking around, I found xml, and managed to do it work somehow, the XSL language is:

<? format-number (round ((100 * translate (ItemPrice, ",","")) div 1000), "" ")? >

I tried different things as the last parameter, such as # or 00 or something.

In any case the underlying theory to the above is:
-Remove commas from the ItemPrice (function definition).
-Times it by 100 and round the result.
- Then divide by 1000
-format in a certain way.

The values obtained on the report are:
€20 188
€260
€601 163
€2 525

I noticed in writing that we are * per 100, but perhaps * by 1000 and changed the xsl as follows:
<? format-number (round ((1000 * translate (ItemPrice, ",","")) div 1000), "#, #.") 00')? >
That gives the following result
201 875,0
€ 0
2 €601,00
6 011 625
€00
25 245.00


I also tried 100 on each side:
201 875,0
€ 0
2 €601,00
6 011 625
€00
25 245.00


Does anyone know how to get the correct result:

€201,88
€260,10
€6.01
€252,45

Two step process:
1 set the format: * ++ *.
2. use the format: * ++ *.
See you soon,.
ND
Use the buttons "useful" or "correct" to award points to the answers / mark the thread as answered, if your question is answered.

Tags: Business Intelligence

Similar Questions

  • Numbers with decimals and text in a field

    Hello all, I have created a form to fill out pdf for use as a budget calculator. Many of the fields require the word "(reserved)" to be entered in the field, if there is no value. If I set the format of the number field, I can't type all the letters in the field. If I set the size to zero, I can type the numbers and letters, but it will not calculate if the numbers have commas and decimal points. Any ideas? Thank you!

    OK, something that will work is to add two functions to a JavaScript script at the level of the document:

    function reservedFormat() {}

    AFNumber_Format (2, 0, 0, 0, "", false);

    If (! event.value) event.value = "(reserved)".

    }

    function reservedKeystroke() {}

    AFNumber_Keystroke (2, 0, 0, 0, "", false);

    }

    Then set up the field with a custom Format and JavaScript typo that represents (respectively):

    Custom format JavaScript

    reservedFormat();

    Custom keystroke JavaScript

    reservedKeystroke();

    Here is an example of PDF file that demonstrates this: https://acrobat.com/#d=VCzfhUuUgB1GW2XQAh6Zyg

    That this fact is to use the same built-in routines that Acrobat uses when configure you a number format, but add the bit that displays the string "(reserved)" when the field is empty. This is done in the Format script since you just want to display this value and do not it field value when the field is empty. Note that if the value of the field is zero, it will appear not "(reserved)".

  • Result of the calculation were separated to the whole and decimal, number not rounding correctly

    I have 2 fields as a result of sharing: the whole and decimal number (1 decimal place). I Math.floor the result to get the whole number and everything is fine until I hit a case where the result is 92,97.

    This should give "93" in the whole of the field and '0' in the decimal field, instead it gives me '92' and '10' (even though I'm only hosting 1 character in the field).

    How can I get the '93' and '0' in the following code?

    fieldLVEDV = this.getField("LVEDV").value;

    fieldBSA = this.getField("BSA").value;

    If (fieldLVEDV! = "" & & fieldBSA! = "") {}

    totalLVEDV = this.getField("LVEDV").value + ((this.getField("LVEDVDec").value)/10);

    calculation = (totalLVEDV / fieldBSA);

    calculationDecimal = calculation;

    partWhole = Math.floor (calculation);

    if(partWhole <0) {partWhole =' ' ;}}

    this.getField("Index").value = partWhole;

    this.getField("IndexDecimal").value = Math.round (10 *(calculationDecimal-partWhole));

    {If (this.getField("IndexDecimal").value = '10')

    {

    this.getField("Index").value = partWhole + 1;

    this.getField("IndexDecimal").value = "0".

    }}

    } else {}

    this.getField("Index").value = "";

    this.getField("IndexDecimal").value = "";

    }

    I thought I'd add the blue part would do the job, but obviously it did not work.

    Ah, your problem is that you do not use the correct comparison operator. To check if two values are equal, the operator is "==" not not "=". Using "=", you assign the value 10 to the field which you then pass in 0 a few lines down. Use 'is' and things should work correctly.

  • Regex to allow only integer and decimal numbers.

    Hi all

    I need a regex to allow only integers and decimal numbers.

    Examples:

    100 licences

    100.00 - Unauthorized

    100 - unauthorized

    100.11.22 - unauthorized

    all characters other than numbers - unauthorized

    I used the regular expression - ^ [0-9] +. ? [0-9] * $- but its allowing the "100" also.

    Can someone help me solve this problem.

    Your timely assistance is greatly appreciated.

    Thanks in advance.

    Hello

    inDiscover wrote:

    Hi all

    I need a regex to allow only integers and decimal numbers.

    Examples:

    100 licences

    100.00 - Unauthorized

    100 - unauthorized

    100.11.22 - unauthorized

    all characters other than numbers - unauthorized

    I used the regular expression - ^ [0-9] +. ? [0-9] * $- but its allowing the "100" also.

    Can someone help me solve this problem.

    Your timely assistance is greatly appreciated.

    Thanks in advance.

    Use

    ^[0-9]+(\.[ 0-9] +) ? $

    to make the decimal point and the following figures (of which there must be at least 1), as a unit, as an option.

  • Get-vmHost replace space and convert the numbers of two places decimal

    I have a script with a Get -VMHost command that brings all the I need information, but ...

    1 I need to come the table below ' ; " as opposed to space;
    2 If there is more than one area is not necessarily see two ' ; ' But only one;
    3 I want to with the return carrier at the end of each line.
    4 - I want convert values of numbers with only two decimal places

    COMAND in the script:

    [Sub] (Get-PSSnapin VMWare.VimAutomation.Core - ErrorVariable getVmwareSnapinErr 2 > $null)

    If ($getVmwareSnapinErr.Count - gt 0) {Add-PSSnapin VMware.VimAutomation.Core}

    $Name = @{label ="";}

    Expression = {$_.} Name};

    Align = "Left".

    Width = 29}

    $NumCpu = @{label ="";}

    Expression = {$_.} NumCpu};

    Align = "Left".

    Width = 2}

    $CpuUsageMhz = @{label ="";}

    Expression = {$_.} CpuUsageMhz};

    Align = "Left".

    Width = 5}

    $CpuTotalMhz = @{label ="";}

    Expression = {$_.} CpuUsageMhz};

    Align = "Left".

    Width = 5}

    $MemoryUsageGB = @{label ="";}

    Expression = {$_.} MemoryUsageGB};

    Align = "Left".

    Width = 5}

    $MemoryTotalGB = @{label ="";}

    Expression = {$_.} MemoryTotalGB};

    Align = "Left".

    Width = 5}

    Claire

    SE connect-VIServer 10.8.3.87 - Tolkien username-password 123456

    Get-VMHost-HP_Lab location-connected state. Format-Table - AutoSize - HideTableHeaders $Name, $NumCpu, $CpuUsageMhz, $CpuTotalMhz, $MemoryUsageGB, $MemoryTotalGB | Out String width 100

    Result:

    32 14875 14875 dhp00905.df.intrabb.BB.com.br 255,989841461181640625 114,048828125

    32 17759 17759 lhp00901.df.intrabb.BB.com.br 255,989841461181640625 133,103515625

    32 14892 14892 lhp00902.df.intrabb.BB.com.br 255,989841461181640625 209,2626953125

    32 12599 12599 hhp00906.df.intrabb.BB.com.br 255,989841461181640625 138,599609375

    32 15748 15748 hhp00908.df.intrabb.BB.com.br 255,989841461181640625 134,26171875

    32 16946 16946 hhp00907.df.intrabb.BB.com.br 255,989841461181640625 142,251953125

    Desired result


    dhp00905.df.intrabb.BB.com.br; 32; 14875; 14875; 114,04; 255,98

    lhp00901.df.intrabb.BB.com.br; 32; 17759; 17759; 133,10; 255,98

    lhp00902.df.intrabb.BB.com.br; 32; 14892; 14892; 209,26; 255,98

    hhp00906.df.intrabb.BB.com.br; 32; 12599; 12599; 138,59; 255,98

    hhp00908.df.intrabb.BB.com.br; 32; 15748; 15748; 134,26; 255,98

    hhp00907.df.intrabb.BB.com.br; 32; 16946; 16946; 142,25; 255,98

    This is because you are sending to values of hash tables.

    You must change these

    $Name = $_. Name

    ....

    Any alignment you want to do, can be done in the format strings.

  • Grouping and decimal characters in rtf templates.

    Hi guys and girls,

    I'm really struggling with a problem here about decimal characters for the price in my outings.

    I use XML Publisher 5.6.3.

    My goal is to control the character grouping and decimal of my model.

    The numbers in the XML data file can be 10,000.00 or 10,000.00. The format is managed by the users nls_numeric_characters profile option.

    The output of the model will be based on the locale and not the data generated by Oracle reports. For example: reports to U.S. customers must show the number in the format according to 10,000.00. Reports to our European customers must indicate the numbers in this format 10,000.00.

    How can I achieve this in my models? It is possible at all?

    Thank you in advance.

    Kenneth Kristoffersen

    Published by: Kenneth_ on May 19, 2009 01:30

    If you go, stick to the old query and want new changes, I fear its bit difficult and that he must go around to bypass only :)

    use function to translate and replace points like this

    Re: XML-22036 cannot convert XXXXX number

  • Migration via the time machine (old imac) to new imac done numbers keynote pages and other programms disappear

    Migration via the time machine (old imac) new done imac numbers keynote pages and other programms disappear - what is my mistake?

    You should be able to re-download your apps purchased on the Mac App Store.

  • My iphone will not suddenly be updated to icloud photos?  It has been working well recently and I tried restore, reboot, turn iclould off photos and return, etc...  can anyone help?  well worked yesterday and now not...

    My iphone will not suddenly be updated to icloud photos?  It has been working well recently and I tried restore, reboot, turn iclould off photos and return, etc...  can anyone help?  well worked yesterday and now not... most of the time the number of photos don't match same new how I am download to icloud...

    Have you tried the signature to iCloud and then reconnect?

    Try a reset.

    Reset device

  • Numbers of Skype and Pamela

    I have two Skype numbers and have used Pamela's. The number is for business and the other private. I put different Pamela greeting for each number. Regularly I've always tested to ensure Pamela has pick up and registration by the ringing of a Skype number to another.

    In the last week of March 2016, I made such a trial and although I could see incoming calls from Skype and its transfer to Pamela no message from Pamela clicked in.

    Thinking that it is a question of Pamela I deleted and reinstalled the Pamela and Skype several times. Always without success.

    Finally I used a landline to call in turn two numbers of Skype and SUCCESS the call went through to PAMELA and unique greeting Message has been played and recorded my call.

    I'm not a technical person but can only conclude that something in the SIGNAL of SKYPE is corrupt questions so that the GREETING of PAMELA and RECORDING FAILS.

    Someone in the blue yonder had a similar experience? If so, is there a work around or do the TECHNICAL BOFFINS SKYPE have to solve.

    Problem replied. No response however from Skype but Pamela came to the rescue. The answer was that Skype boffins had changed something, and what was POSSIBLE. IE by calling your own Skype to your Skype number to check its operation is not currently possible. To check a must now use a traditional landline to perform the audit.

    Everything is OK now thanks to PAMELA

  • Composition of the phone numbers with pauses and extensions?

    With the Pre, is it possible to insert pauses and extensions in phone numbers in your contacts list? And have the phone to dial them all at once when you compose?  What to do to have these numbers in your calendar for an event such as a conference call?  I would like to simply touch the number to the event and do all numbers with pauses and extensions to put me in the call.

    To insert a two-second pause in the dialing sequence, enter a T where you want than the break to appear. To include a stop in the numbering sequence, enter a P where you want to stop to appear. to call the next set of numbers after the stop, press the screen.

  • This program is best used to create custom, forms to say double surveys and networks, etc.

    This program is best used to create custom, forms to say double surveys and networks, etc.

    http://answers.Microsoft.com/en-us/Office

  • I recently ran an anti malwarescan through my pc he gave me a list of 77 items found with some of the PUP. Optional.B PUPPY in option D... I and S, etc I do just remove tem from the list

    I recently ran an anti malware scan via my pc he gave me a list of 77 items found with some of the PUP. Optional.B PUPPY in option D... I and S etc I just remove them from the list

    Yes. Delete the PUP.

    You don't mention which program you used, but these are two very good freeware ones.

    Download the free versions of these tools. Always check the updates before the race.

    Malwarebytes Anti-Malware
    http://www.Malwarebytes.org/products/malwarebytes_free

    SuperAntiSpyware
    http://www.SUPERAntiSpyware.com/

  • Outlook Express 6.0 when I send an email, it seems that it does not completely turn off but it does and everytime I open OE, it turns off again and again and again, etc. Any ideas? Thank you

    I send an email, it does not completely turn off. A message that says that the task had not been completed, but no error message appears. The email goes off, and whenever I open OE it turns off again and again and again, etc. Any suggestions?

    Thank you

    You have the apparent corruption of dbx files, but an easy solution.

    Spend most of your messages out of the Inbox and then create new folders to send and sent items box after having moved the messages you want to save to a local folder that you create.

    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.

    In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.

    With OE closed, find the DBX files for the items in the Outbox and sent and delete them.  New ones will be created automatically when you open OE.

    After you're done, followed by compacting your folders manually while working * off * and do it often.

    Click Outlook Express at the top of the the folder tree so no folders are open. Then: File | Work offline (or double-click on work online in the status bar). File | Folder | Compact all folders. Don't touch anything until the compacting is completed.

    General precautions for Outlook Express:

    Do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend all a 300 MB max for less risk of corruption.

    Information on the maximum size of the .dbx files that are used by Outlook Express:
    http://support.Microsoft.com/?kbid=903095

    Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3

    Why you don't need your anti-virus to scan your email
    http://thundercloud.NET/infoave/tutorials/email-scanning/index.htm

    Note that for some AV programs, it may be necessary to uninstall the program and reinstall in custom Mode and uncheck analysis when the option is the result of e-mail messages.

    Compact often as specified above.

    And backup often.

    Outlook Express Quick Backup (OEQB Freeware)
    http://www.oehelp.com/OEBackup/default.aspx

    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • my system does not start upwards - don't stop progression blue bar that goes round and round. I can boot into safe mode and safe mode with networking mode.

    my system does not start upwards - don't stop progression blue bar that goes round and round.  I can boot into safe mode and safe mode with networking mode.

    Hello

    As you are able to boot to the desktop in Mode safe, it means that the third-party application prevents the computer from starting in normal mode. To check you can configure the computer to clean start State and then try to boot into normal mode and check what is happening. To set up its own start-up follow the link below.

    http://support.Microsoft.com/kb/310353

    If the problem does not continues when the computer is in the clean start State follow the steps listed to identify which application is causing the problem.

    Note: When you are finished troubleshooting, follow step 7 article to start on normal startup.

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Is there something special I need to do to upgrade to Windows 7 Vista 64? I keep my icons the desktop and Favorites, etc. ?

    upgrade to Windows 7 Vista 64

    Is there something special I need to do to upgrade to Windows 7 Vista 64? I keep my icons the desktop and Favorites, etc. ?

    Just the usual if update Vista 64 for Windows 7 64-bit.

    Make sure you have a backup system and separate backups of your files user such as documents, images, videos, music, email and such stores. In addition, it is wide to ensure you have a way of rerstoring any application that you have added to the original instrall factory.

    Good luck and enjoy your new system.

    Tom Ferguson

Maybe you are looking for

  • Mozilla runs on Windows 10?

    Mozilla runs on Windows 10?

  • Scan with a Deskjet 3051 has

    Hello I'm new to this forum so forgive me if I'm been negligent.  I am operating Windows XP. Yes, I'm an old lady on an old computer. In January, I bought a Deskjet 3051 a because my old Scanner HP, finally the waived.  I have been using for several

  • How does the Time Capsule?

    I'm looking into buying time Capsule Airpot but I have a few questions and hoping someone can help! I'm basically looking for a way to back up my MacBook Pro and replace my crappy router in the thought process was a good deal... However what I was as

  • Service pack 3 installation

    I have a Dell Inspiron 9100 (about 3-4 years) and on many occasions, I tried to download the Service Pack £. every time I have been invited to load the CD, but the program has been pre-installed I never received a CD although I don't have the product

  • Microsoft Wireless Comfort Keyboard 5000 - just the legs!

    Where can I buy the removable feet for the keyboard 5000 wireless.  Someone has thrown a :( Shoring of the keyboard with a Post-It note pad does not work very well!