Distinct Count in BI Publisher [message #452045] |
Mon, 19 April 2010 13:01 |
aaashwini@gmail.com
Messages: 24 Registered: May 2009
|
Junior Member |
|
|
Hi,
I need to use the feature distinct count in BI Publisher. So, if the distinct count is 1 then do display certain information else display some other information.
I'm using this particular syntax: <?count(distinct-values(ProjectNumber))?>
Please let me know if there is some JAR file is missing or is there some other method to achieve distinct count.
Many Thanks in advance
But it thorws out a Java Exception:
************************************
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
at RTF2PDF.runRTFto(RTF2PDF.java:629)
at RTF2PDF.runXDO(RTF2PDF.java:439)
at RTF2PDF.main(RTF2PDF.java:289)
Caused by: oracle.xdo.parser.v2.XPathException: Function 'distinct-values' not found.
at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
... 14 more
********************************************************
|
|
|
|
|
|
|
|
Re: Distinct Count in BI Publisher [message #452348 is a reply to message #452219] |
Wed, 21 April 2010 08:57 |
aaashwini@gmail.com
Messages: 24 Registered: May 2009
|
Junior Member |
|
|
Thanks Vamsi...Distinct-values is working after adding the prefix xdoxslt....
Vamsi-
I have one more question.Can you please let me know if there is a format to enable red color for negative numbers alone and positive numbers will be shown as it is.
I'm currently using the format: $#,##0.00;($#,##0.00)
But the problem with this format is it appends $ sign before the numbers. This is not acceptable by the client. If I remove the $ sign from the format and re-execute then the format does not work in Excel output alone and works in HTML and PDF output formats. But the client wants the output in Excel only. Please let me know if there is any trick to achieve the functionality.
Many Thanks
Ashwini
|
|
|