Categories
- All Categories
- 130 Oracle Analytics News
- 24 Oracle Analytics Videos
- 14.5K Oracle Analytics Forums
- 5.5K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 50 Oracle Analytics Trainings
- 8 Oracle Analytics Data Visualizations Challenge
- 4 Oracle Analytics Career
- 8 Oracle Analytics Industry
- Find Partners
- For Partners
Is it possible to consider leading zeros from an XML file in Excel Model BI Publisher?

I'm designing a report with two sheets:
- One containing a regular table.
- Another with a pivot table.
In my XML file, I have the <OP>
field displayed as follows:
<G_1>
<ORD>1</ORD>
<ORG>0001_OI_CED_MAT</ORG>
<ITEM>VGA20143</ITEM>
<DESCRI>VIGA I 6 A572 (W150 X 18.0) C/ 6000MM</DESCRI>
<OP>0001.2461</OP>
</G_1>
For the first table, I was able to preserve the leading zeros by using the XDO_METADATA
file like this:
<?concat(' ', OP)?>
However, I can't use the formatted number in my pivot table, and I'm getting a display error (as shown in the screenshot).
I followed the recommendation from this link to create the pivot table using an Excel Template:
🔗 Adding Native Pivot Charts and Tables to Your Excel Reports
Does anyone know how to keep the leading zeros while ensuring the value remains a number in the pivot table?
Best Answer
-
Hello, in case it helps someone, I found a way to keep the leading zeros while keeping the field as text.
I selected the cell properties and set the format to CEP Code (Brazilian Postal Code).
In this specific case, it worked for my issue and allowed me to proceed with the pivot table.
Thanks
0
Answers
-
I haven't seen any solution for this yet i.e. to keep the formatting as number and preserving the leading zero's.
As per below MOS doc, it is currently the limitation:
BI PUBLISHER : Leading Zeroes Are Truncated When The Report Is Of Excel Format (Doc ID 760041.1)
Thanks.
0 -
Thank you for the quick response!
And is there any other solution to preserve the leading zeros using the text type?Even with this, I encountered this limitation. The only solution I found was to concatenate a blank space in front.
0 -
This is interesting. Thanks for sharing. Did you set it under Special format? I couldn't see CEP code as a value on my excel? If possible please share a screen shot.
Regards.
0 -
Hello, of course.
This is the screenshot of the cell formatting:
And this is the result in my pivot table, correctly formatted (OP Field):
1 -
Thank you. Appreciated !!!
1