Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

.RTF TEMPLATE 0,00 instead of ,00 inside of a sum group

Received Response
62
Views
2
Comments

Summary

.RTF TEMPLATE 0,00 instead of ,00 inside of a sum group

Content

Hello , I have a requirment from a customer that want that the numbers (when <1 ) appear in his invoice like 0,77 instead of ,77.

This is a vat table that have a sum group like this:

<?for-each-group:Tax_Summary_Lines_Section_S8;./Summary_Tax_Rate_ID4?><?sort:current-group()/Summary_Tax_Rate_ID4;'ascending';data-type='number'?>

<?format-number:(sum(current-group()/Summary_Taxable_Amt_ID8));'999G999D99'?>

<?end if?>

When the value is less than 1 i always get the output of , per example ,   ,70 insted of 0,70.

This format in a normal for each works fine in this cases so i think that its something related with sum group funcion

Someone can help me?

Thanks in advance.

Answers

  • Sherry George
    Sherry George Rank 7 - Analytics Coach

    Try something like this <?xdoxslt:format_number(SALARY, 2, ',', ',', 'en-US')?>

    If it doesn't work could you post a sample XML and RTF, also what version is your BI publisher?

  • Brajesh Shukla-95078
    Brajesh Shukla-95078 Rank 7 - Analytics Coach

    Hi,

    Instead of format

    <?format-number:(sum(current-group()/Summary_Taxable_Amt_ID8));'999G999D99'?>

    you can use

    <?format-number:(sum(current-group()/Summary_Taxable_Amt_ID8));'999G990D00'?>

    Regards,

    Brajesh