Formula Columnn in Matrix Report (Running Balance)
Hi all. I hope somebody can help me.
I am working on a matrix report using multi-query data models. The report has 2 groups in the horizontal axis and 3 groups in the vertical axis. The intersection is not just a single row but may consist of multiple rows.
My problem is this. I want to create a column in the intersection which is obtained by using a column value from the lowest group in the vertical axis and a summary column obtained from the rows of the intersection.
Here's what my report looks like:
2002 (accross) 2003
januar february (accross
payments balance paymenst balance
2002 (down)
Januar (down)
Loan#1 10,000 500 9000 200 8800
500
Loan#2 5000 100 4900 200 4700
February
Loan#3 3500 0 3500 50 3450
Loan#4 4200 0 4200 0 4200
As you can see, the loans are grouped by month and year. And the payments are grouped for the month and year too.
The data model is :
For Query 1 (Vertical Axis),
1st group - Loan Yr
2nd group - Loan Mo
3rd group - Loan # and amount
For Query 2 (Horizontal Axis)
1st group - Payment Yr
2nd group - Payment Mo
Intersecion /Detail Group - Payment Amount
My problem actually is how to compute for the running balance of the loan for each month in the horizontal axis. Ive already created a cross product summary to get the running total of the payments made for the month. I tried creating a formula column to for the running balance by subtracting it from the loan amount but i get the error "incompatible frequency"
I hope i have described my problem well and thanks for the help
The problem is that you're trying to reference dimension columns(loan Amount) in the calculation of matrix cell values. You can only reference other matrix cell values or cross product columns (summary, formula, placeholders) when calculating matrix cell values. Try moving the (loan Amount) column down to the matrix cell - something like:
For Query 1 (Vertical Axis),
1st group - G_LoanYear(LoanYr)
2nd group - G_LoanMonth(LoanMo)
3rd group - G_LoanNumber(Loan#)
For Query 2 (Horizontal Axis)
1st group - G_PaymentYear(PaymentYr)
2nd group - G_PaymentMonth(PaymentMo)
Intersecion /Detail Group - G_Details(PaymentAmount, LoanAmount)
Then create the following Matrix summary columns:
A running summary - CS_Payments:
- Product Order: G_LoanYear G_LoanMonth G_LoanNumber G_PaymentYear G_PaymentMonth
- Source: PaymentAmount
- Function: Sum
- Reset At: G_LoanNumber
The total amount per loan - CS_TotalPayment:
- Product Order: G_LoanYear G_LoanMonth G_LoanNumber
- Source: LoanAmount
- Function: First
- Reset At: G_LoanNumber
The value of the loan after each payment - CF_Countdown:
- Product Order: G_LoanYear G_LoanMonth G_LoanNumber G_PaymentYear G_PaymentMonth
- PL/SQL Formula:
function CF_CountdownFormula return Number is
begin
return(:CS_TotalPayment - :CS_Payments);
end;
You should then be able to display "CF_Payments" and "CF_Countdown" in the matrix cell to show how much has been paid and how much is still owed.
You can still have another "loan amount" as a dimension column - you just don't need to use it when calculating the values in the cell.
Similar Messages
-
Formula Column in Matrix Report (Running Balance)
Hi all. I hope somebody can help me.
I am working on a matrix report using multi-query data models. The report has 2 groups in the horizontal axis and 3 groups in the vertical axis. The intersection is not just a single row but may consist of multiple rows.
My problem is this. I want to create a column in the intersection which is obtained by using a column value from the lowest group in the vertical axis and a summary column obtained from the rows of the intersection.
Here's what my report looks like:
2002 (accross)
2002(down) january february (accross)
January (down) payments balance payments balance
loan #1 10,000 500 9,000 200 8,800
500
loan #2 5,000 100 4,900 200 4,700
February
loan #3 3,500 0 3,500 50 3,450
loan #4 4,200 0 4,200 0 4,200
As you can see, the loans are grouped by month and year. And the payments are grouped for the month and year too.
The data model is :
For Query 1 (Vertical Axis),
1st group - Loan Yr
2nd group - Loan Mo
3rd group - Loan # and amount
For Query 2 (Horizontal Axis)
1st group - Payment Yr
2nd group - Payment Mo
Intersection Group - Payment Amount
My problem actually is how to compute for the running balance of the loan for each month in the horizontal axis. Ive already created a cross product summary to get the running total of the payments made for the month. I tried creating a formula column to for the running balance by subtracting it from the loan amount but i get the error "incompatible frequency"
I hope i have described my problem well and thanks for the helpThe problem is that you're trying to reference dimension columns(loan Amount) in the calculation of matrix cell values. You can only reference other matrix cell values or cross product columns (summary, formula, placeholders) when calculating matrix cell values. Try moving the (loan Amount) column down to the matrix cell - something like:
For Query 1 (Vertical Axis),
1st group - G_LoanYear(LoanYr)
2nd group - G_LoanMonth(LoanMo)
3rd group - G_LoanNumber(Loan#)
For Query 2 (Horizontal Axis)
1st group - G_PaymentYear(PaymentYr)
2nd group - G_PaymentMonth(PaymentMo)
Intersecion /Detail Group - G_Details(PaymentAmount, LoanAmount)
Then create the following Matrix summary columns:
A running summary - CS_Payments:
- Product Order: G_LoanYear G_LoanMonth G_LoanNumber G_PaymentYear G_PaymentMonth
- Source: PaymentAmount
- Function: Sum
- Reset At: G_LoanNumber
The total amount per loan - CS_TotalPayment:
- Product Order: G_LoanYear G_LoanMonth G_LoanNumber
- Source: LoanAmount
- Function: First
- Reset At: G_LoanNumber
The value of the loan after each payment - CF_Countdown:
- Product Order: G_LoanYear G_LoanMonth G_LoanNumber G_PaymentYear G_PaymentMonth
- PL/SQL Formula:
function CF_CountdownFormula return Number is
begin
return(:CS_TotalPayment - :CS_Payments);
end;
You should then be able to display "CF_Payments" and "CF_Countdown" in the matrix cell to show how much has been paid and how much is still owed.
You can still have another "loan amount" as a dimension column - you just don't need to use it when calculating the values in the cell. -
Howto use formula columns in matrix reports
Hello
How can i use a formula column in matrix report whose function would be
Formula_Column_Result=A-B where A=Cell A
B =Cell B
Regards
FahadHii guys
I solved my problem on my own.
i wrote
SELECT * FROM EMP WHERE EMP.DEPTNO=P_DEPT_NO
and it worked.
Thanks guys..i luv this forum
Regards
Fahad Hameed -
WAD: add new formula / structure element to report run by user
Hi,
I know that there is a possibility to add a formula or "structure element" to a WAD report that is being run by a user (user opens WAD report and can add a formula). We are using WAD 7. Unfortunately I don't know where this function is hidden in WAD (I am new to WAD....).
Thanks!Hi Steve,
Make sure you have the following web item and property enabled in your WAD template.
~ Context Menu Item > Local Formula
Once this is enabled, you can run the WAD report, right click and select Calculations and Translations > Formula > Create New formula
This will populate teh formula builder.
Hope this helps.
Regards
Snehith. -
Friends I am creating group matrix report for Balance Sheet. I am not able to calculate sum on group level 1. Suppose, I am highlighting the issue:
Asset
Current Asset
2012
2013
Account1
10
20
Account2
20
40
30
60
Fix Asset
2012
2013
Account1
10
20
Account2
20
30
30
50
Asset Total
60
110
' ===== Not able to calculate this field. Its giving me report level total
Any help.
RegardsHi,
please read:Re: 2. How do I ask a question on the forums?
and provide the following information:
a) Sample data (CREATE TABLE and INSERT statement or alternatively WITH statement with data)
b) database version
c) description of the logic
d) expected output
You have just posted and output and we don't have idea of what is your input data. It's a bit difficult to answer in this way.
Regards.
Al -
Crystal report running total balance
Hi guys, please help me.
im creating a report using crystal report that display running balance from subreport.
i do have subreport and add it to main report but i need it real time changing.
for example
TRANSACTION TYPE QTY_IN QTY_OUT RUNNING BALANCE
RECEIVED 1 0 1
RECEIVED 2 0 3
SHIP OUT 0 1 2
SHIP OUT 0 1 1
RECEIVED 1 0 2
diagram shows the needed output of the report. please help. thankshi sir abhilash, i know you know how to fix this, maybe i need to provide some more information about the report: here what i did:
created formula @QTY_IN where code is:
if {ITRN.TRANTYPE} = 'DP' then
{ITRN.QTY}
else
if{ITRN.TRANTYPE}='AJ' then
(if {ITRN.QTY} >=0 then {ITRN.QTY}) else
0
create formula @QTY_OUT
if{ITRN.TRANTYPE}='AJ' then
(if {ITRN.QTY} >=0 then 0 else
{ITRN.QTY}) else
if{ITRN.TRANTYPE}='WD' then
{ITRN.QTY}
else 0
create running total fields for @QTY_IN And @QTY_OUT
total_qty_in and total_qty_out
sum the fields and resets every change of group.
create a formula(running) based on your suggetion
create running_total_reset code is
WhilePrintingRecords;
numbervar rt := 0;
paste it to group header.
the output is
in out running
shipment 0 -4 146116
shipment 0 -1 146117
shipment 0 -4 146116
but it should be
in out running
shipment 0 -4 (-146118) 146114
shipment 0 -1 (-146114) 146113
shipment 0 -4 (-146113) 146109
so on so forth.
we can do this sir. thanks ^__^.
really appreciate your help. -
How to get a running balance on a report
How do I get a running balance for one customer. Please look at the data set as a example and advise.
Customer A Apples
1.00 Paid
Customer A Pears
2.00 Paid
Customer A Oranges
2.50 Open
Balance 2.50
What expression am I to use in report builder
ThanksHi,
Here is the example for getting running Value:
http://gerryhubi.wordpress.com/2010/03/16/ssrs-tips-runningvalue/
SSRS Tips – RunningValue
Posted on March
16, 2010by gerryhu2000
Running value is a very generic and useful function. All
the 3 parameters can be manipulated for different purpose.
· Expression
the target on which the aggregation is applied. Most of the time it’s the column name in a dataset, or a combination of a few columns, e.g. “Group1 & Group2”.
· Function
Aggregate functions, and the most often used functions include
Avg
Returns the average of all non-null numeric values specified by the expression
Count
Returns a count of non-null values specified by the expression
CountDistinct
Returns a count of all distinct non-null values specified by the expression
Max
Returns the maximum value of all non-null numeric values specified by the expression.
You can use this for specifying a chart axis maximum value to control the scale.
Min
Returns the minimum value of all non-null numeric values specified by the expression.
You can use this for specifying a chart axis minimum value to control the scale.
Sum
Returns the sum of all the non-null numeric values specified by the expression
· Scope
The scope can be dataset, table or table groups.
The sample report below shows some applications of RunningValue. The dataset uses this query
SELECT Company, Product, InvoiceNumber, InvoiceAmount from InvoiceTable
The table (SSRS table control) is configured to have 2 groups, “gCompany” and “gProduct”.
Here is a report featured with Running Value tips
Alternate
color for Product Group
Normally the “green-bar” (green background color for alternate rows) is implemented by setting
the back ground color of the detail row to
=IIF(RowNumber(Nothing)
Mod 2,"Green","White")
To set color for alternate groups, use the expression below for background color
=IIF(RunningValue(Fields!Product.Value,CountDistinct,Nothing)
Mod 2, "LightBlue", "White")
The RunningValue function works like a counter/index for the product group.
Running
Sum value
Cumulative sum is calculated in this expression:
=RunningValue(Fields!Amount.Value,
SUM, Nothing)
“Scope = Nothing” means the outermost data region. And for Running Sum by Company or Product,
the scope if set to the corresponding group name.
=RunningValue(Fields!Amount.Value,
SUM, “gCompany”) or
=RunningValue(Fields!Amount.Value,
SUM, “gProduct”)
Group
Running Number
The summary table uses the same dataset as the details table. Normally the row number uses the
function
= RowNumber(“table1”)
For this case, the row number is using the CountDistinct function. The expression is
=RunningValue ( Fields!Company.Value +
Fields!Product.Value,
CountDistinct, Nothing)
Notice that the 2 groups are both used, to prevent mixing products
from different company.
Thanks Shiven:) If Answer is Helpful, Please Vote -
Hello everybody,
I created a oracle report i.e Bank Book having banks transactions receipts and payments and opening balance w.e.f 01-jul-2014. parameters are bank code, from_date and to_date. opening balance calculates (return ope from table bankinfo +total receipts-total payments). reports runs correctly via report builder. balances are ok. but the problem is when i run this report via oracle form opening balance return only ope from table bankinfo and skips total receipts-total payments.....
i dont think so why this happend at all. some body help me...
thanks
Abdul SalamHi ,
This community is to discuss Oracle Application Server specific issues, you can post this query in for better response:
Oracle Reports (MOSC)
Regards,
Prakash. -
How do I "fill down" a formula in a spreadsheet to get a running balance of payments and deposits
How do I FILL DOWN a formula in a spreadsheet to get a running balance of payments and deposits?
using what spreadsheet program?
-
Reg: Implementing a formula in Matrix Reports
Hi Everyone,
i have a simple scenario, i have a matrix report with ROWS => EMPNO, COLS => DEPTNO, CELLS => SAL
Using Matrix report wizard i am able to do this very easily... now i implemented summaries like {AVG,MIN,MAX,SUM } DEPTNO wise using default summary options provided.
Now i want sum of squares of salaries as one of the summary along with {AVG,MIN,MAX,SUM}
What is the method to access the cell information in order to use it in formula column.
Regards,
SreekanthHi,
There are three salaries in a column per deptno, suppose for deptno 10 there are three matching values {10,20,30} now i want them to be (10 square + 20 square + 30 square) in a Formula column CF_1 and then return it into a field which would be placed along with summaries like AVG,MIN,MAX.
To do the above my formula column code would simple be return(:sal * :sal) in the same group which contains 'sal' but i dont know how many would i get at runtime to sum them up and i tried without summing by giving just return(:sal*:sal) and connected it to a field along with summaries AVG,MIN,MAX and i am getting error:
"REP-1213: Field 'F_1' references column 'CF_1' at a frequency below its group"
Hope i am clear.
Thnaks and Regards,
Sreekanth.J.U.P -
Dear All,
I am trying to build a Trial Balance in Crystal report using the followings SQL Query as under :
SELECT T1.[TransId], T1.[Line_ID], T1.[Account], T0.[AcctName], T0.[GroupMask], T1.[Debit], T1.[Credit], T1.[FinncPriod], T1.[RefDate] FROM OACT T0 INNER JOIN JDT1 T1 ON T0.AcctCode = T1.Account
To a very much extent I am able to extract the correct data for the financial period. Now I also want a column of Opening balance to be shown in this report.
For example if I run the report for monthly basis the following should be shown :
Opening Balance Debit Credit Closing Balance
hence if suppose I run the report from 1st August 2009 to 31st August 2009 my report is generating wrong balances as closing balance of 31st June 2009 is not reflected in the report but the debit and credit balance is showing correct for the said period.
Do I need to create some formula in Crystal Report or is there a way to modify the above SQL query.
Any early response would be appreciated.
Regards,
Kamleshhi kamlesh,
Why you are going for crystal reports ?
Standard report seems to fulfill your requirement Financial Reports ---> Trial Balance.
Check this link
How to get opening balance of a g/l account using query ?
It will give you idea how to get opening & closing balances.
Hope it helps.
Jeyakanthan -
Please help. I have a matrix report. In the report I have row group PO Type. One the Column groups I have a parent group by Fiscal Year, and then a child group by Month. When I run the report, I get two years of data back broken
out by month. Please see below.
Now here is where I am getting stuck. I need to take the variance between the current month of the current year, from the same month of the prior year. So I need to show the difference between Oct , 2014 from Oct, 2013. November, 2014 from November
2013... etc. etc.
In the example below, how do I create a column or row showing the variance for Contracts for October 2014. I need to take the contracts for October 2014 which is 3 and subtract that from October 2013 which is 8. Any suggestions? How do I do that
for each month? Then I need to do it for the quarter... then the year? But I'll be happy if I can just get the month working first.
Any help will be appreciated.
here is what my rdl file looks like.
Here is what my report looks like when I render it.Hi Adrian_s2012,
According to your description, you want to compare values for the month of current year with the month of prior year and get the variance. Right?
In Reporting Services, we don't have any function to get this "Year to Year" Growth. In this scenario, if you data source is a cube, we suggest you use Analysis Services to achieve your requirement. If this data source is just from database, it will be hardly
to calculate the variance because we need to compare the values within every two different column group and matrix generate adjacent columns one by one. Even we make it by using custom, every time executing the long code when generating result
in a cell will reduce a lot of performance, we really don't suggest to do that in SSRS. Here is a thread with much easier requirement, please take a reference of that:
http://social.msdn.microsoft.com/Forums/office/en-US/842e2dcb-d949-4297-9d91-eac989692cb5/difference-between-the-grouped-column?forum=sqlreportingservices
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
Hello,
i have the following Query
SELECT ALL
FINANCIAL_YEAR_MONTHS.month_desc||' '|| substr( FINANCIAL_YEAR_MONTHS.month_code,4,4) months,
PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE,
CDE_MATERIALS.MATERIAL_DESC, CDE_MATERIALS.PARENT_MATERIAL,
PLN_PLAN_DISTRIBUTION_WAY.EXPECTED_QUANTITY,
PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE,
PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE
FROM
PLN_PLAN_DISTRIBUTION_WAY,
PLN_PLAN_PRODUCTS,
CDE_MATERIALS,
FINANCIAL_YEAR_MONTHS
WHERE
(PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = PLN_PLAN_PRODUCTS.MATERIAL_CODE)
AND ( PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = CDE_MATERIALS.MATERIAL_CODE )
AND (PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE = PLN_PLAN_PRODUCTS.GROUP_CODE)
AND ( PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE= PLN_PLAN_PRODUCTS.FIN_YEAR_CODE )
AND ( PLN_PLAN_DISTRIBUTION_WAY.MONTH_CODE =
to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)))
AND( to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)) >= 7 )
AND (PLN_PLAN_DISTRIBUTION_WAY.DISTRIBUTION_WAY = :P_DISTRIBUTION_WAY )
AND (PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE = :P_FIN_YEAR_CODE)
UNION ALL
SELECT ALL
FINANCIAL_YEAR_MONTHS.month_desc||' '|| substr( FINANCIAL_YEAR_MONTHS.month_code,4,4) months,
PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE,
CDE_MATERIALS.MATERIAL_DESC, CDE_MATERIALS.PARENT_MATERIAL,
PLN_PLAN_DISTRIBUTION_WAY.EXPECTED_QUANTITY,
PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE,
PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE
FROM
PLN_PLAN_DISTRIBUTION_WAY,
PLN_PLAN_PRODUCTS,
CDE_MATERIALS,
FINANCIAL_YEAR_MONTHS
WHERE
(PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = PLN_PLAN_PRODUCTS.MATERIAL_CODE)
AND ( PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = CDE_MATERIALS.MATERIAL_CODE )
AND (PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE = PLN_PLAN_PRODUCTS.GROUP_CODE)
AND ( PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE= PLN_PLAN_PRODUCTS.FIN_YEAR_CODE )
AND ( PLN_PLAN_DISTRIBUTION_WAY.MONTH_CODE =
to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)))
AND to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2))<= 6
AND (PLN_PLAN_DISTRIBUTION_WAY.DISTRIBUTION_WAY = :P_DISTRIBUTION_WAY )
AND (PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE = :P_FIN_YEAR_CODE) the Report is a Matrix Report with Group Material_names as Rows and financial Months as Columns and the expected_Quantity as cells of that report matrix.
Well,the query runs just fine in Toad as
Months Material_code Material_Desc ..etc.
July 2007 1 abc
July 2007 2 def ...etc.
June 2008 1 abc ..etc.
June 2008 2 def ...etc.
But in a report the output of months are a mess not ordered as a fin_year months..
i tried to change the design of the report from Matrix group to Matrix got same result...
Any Suggestions pls.
Regards,
Abdetu..This the Query with order by which doesn't return the required order..
SELECT ALL
FINANCIAL_YEAR_MONTHS.month_desc||' '|| substr( FINANCIAL_YEAR_MONTHS.month_code,4,4) months,
PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE,
CDE_MATERIALS.MATERIAL_DESC, CDE_MATERIALS.PARENT_MATERIAL,
PLN_PLAN_DISTRIBUTION_WAY.EXPECTED_QUANTITY,
PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE,
PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE
FROM
PLN_PLAN_DISTRIBUTION_WAY,
PLN_PLAN_PRODUCTS,
CDE_MATERIALS,
FINANCIAL_YEAR_MONTHS
WHERE
(PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = PLN_PLAN_PRODUCTS.MATERIAL_CODE)
AND ( PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = CDE_MATERIALS.MATERIAL_CODE )
AND (PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE = PLN_PLAN_PRODUCTS.GROUP_CODE)
AND ( PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE= PLN_PLAN_PRODUCTS.FIN_YEAR_CODE )
AND ( PLN_PLAN_DISTRIBUTION_WAY.MONTH_CODE =
to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)))
AND( to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)) >= 7 )
AND (PLN_PLAN_DISTRIBUTION_WAY.DISTRIBUTION_WAY = :P_DISTRIBUTION_WAY )
AND (PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE = :P_FIN_YEAR_CODE)
UNION ALL
SELECT ALL
FINANCIAL_YEAR_MONTHS.month_desc||' '|| substr( FINANCIAL_YEAR_MONTHS.month_code,4,4) months,
PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE,
CDE_MATERIALS.MATERIAL_DESC, CDE_MATERIALS.PARENT_MATERIAL,
PLN_PLAN_DISTRIBUTION_WAY.EXPECTED_QUANTITY,
PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE,
PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE
FROM
PLN_PLAN_DISTRIBUTION_WAY,
PLN_PLAN_PRODUCTS,
CDE_MATERIALS,
FINANCIAL_YEAR_MONTHS
WHERE
(PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = PLN_PLAN_PRODUCTS.MATERIAL_CODE)
AND ( PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = CDE_MATERIALS.MATERIAL_CODE )
AND (PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE = PLN_PLAN_PRODUCTS.GROUP_CODE)
AND ( PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE= PLN_PLAN_PRODUCTS.FIN_YEAR_CODE )
AND ( PLN_PLAN_DISTRIBUTION_WAY.MONTH_CODE =
to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)))
AND to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2))<= 6
AND (PLN_PLAN_DISTRIBUTION_WAY.DISTRIBUTION_WAY = :P_DISTRIBUTION_WAY )
AND (PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE = :P_FIN_YEAR_CODE)
ORDER BY months -
Report runs in Report Builder but hangs in Report Server
Hi,
I am using Oracle Reports 10g to build a report with many formula columns. Everything was working perfectly till I added some condition in a query in formula columns. After adding it, report is not working in Report Server but runs only in Report Builder. If I removed this condition, report runs OK but I need it. This condition is very simple, just filtering be a decoded column (i.e. stts = 'D')
Can anyone suggest how to solve this problem?Hi,
what is the application server version you are running your reports on?
If it is 10.1.2.0.2 to 10.1.2.2 and you are using PDF SUBSETTING (check the [PDF:Subset] section in the uifont.ali file in your server) then you are most probably facing Bug:5029259 . To resolve the issue read further Doc ID 363868.1 in Oracle Support. In short, your options are:
1. apply patchset 10.1.2.3 or maybe patch 5029259 is enough.
2. or make sure no NULL values are returned in the report. Use nvl where possible. If there was no problem before making the changes then maybe checking the new formula columns would be enough. I made this change myself when facing this issue and it appears that this resolved the problem.
3. or change REPORTS_ENHANCED_SUBSET to NO in windows registry if under windows or $ORACLE_HOME/bin/reports.sh if under linux. REPORTS_ENHANCED_SUBSET=YES is necessary if you are using TTF subsetting, though. So this might not be an option.
Julius Z -
XML Publisher with Matrix Report
I build a matrix report in oracle BI publisher(rtf) it generate the output. While it published in oracle apps this rtf then it raise warning before template run successfully after rtf template it generate XML but did not show the output where the matrix design
Edited by: user12879396 on Mar 13, 2012 5:36 AM
Edited by: user12879396 on Oct 3, 2012 2:37 AMSorry for late reply
I have check this NOTE
Oracle.Xdo.Parser.V2.Xpathexception: Namespace Prefix 'Crosstab' Used But Not Declared [ID 743882.1] in this note they mention the following patch Patch 9811428 and oracle remove this patch from download option, replace with this
Patch 12395372: UPDATE FOR BI PUBLISHER DESKTOP 10.1.3.2.1 (5.6.3)
am I right or wrong ?
This is the OPP LOG
Template code: XXABTPOHIRU
Template app: XXCUST
Language: en
Territory: US
Output type: EXCEL
[12/19/12 11:42:07 AM] [UNEXPECTED] [697343:RT4872113] java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:611)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:239)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5954)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3460)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3549)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:296)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:173)
Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'crosstab' used but not declared.
at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
... 16 more
[12/19/12 11:42:07 AM] [697343:RT4872113] Completed post-processing actions for request 4872113.
0 secs]
[GC 52989K->35898K(61720K), 0.0018160 secs]
[GC 52986K->35907K(61720K), 0.0018460 secs]
[GC 52995K->35908K(61720K), 0.0014240 secs]
[GC 52996K->35913K(61720K), 0.0014680 secs]
[GC 53001K->35918K(61720K), 0.0014530 secs]
[GC 53006K->36203K(61720K), 0.0021110 secs]
[GC 53291K->35993K(61720K), 0.0017140 secs]
[GC 53081K->39371K(61720K), 0.0087720 secs]
[GC 56459K->43065K(61720K), 0.0176650 secs]
[GC 60153K->45722K(62872K), 0.0130020 secs]
[Full GC[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor45]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor47]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor48]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor43]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor69]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor49]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor39]
[Unloading class sun.reflect.GeneratedMethodAccessor17]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor40]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor65]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor44]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor37]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor38]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor42]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor66]
[Unloading class sun.reflect.GeneratedMethodAccessor19]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor41]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor64]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor36]
[Unloading class sun.reflect.GeneratedMethodAccessor14]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor71]
[Unloading class sun.reflect.GeneratedMethodAccessor18]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor46]
Maybe you are looking for
-
Help! Aperture won't work with Snow Leopard...
I know you will all probably laugh at me because I have just upgraded to Snow Leopard. The problem is that nobody told me my Aperture wouldn't work anymore! I can't even open it to retrieve my photos...(btw, this is why I was hesitant to upgrade...b
-
Hi. I had a SMALL coffee spill on the T410 a week ago. Mouse button-behavior has been a litle unpredictable ever since, both on the keyboard itself (all four touchpad buttons are a little off, with the right-click buttons being the most inconsistent)
-
Can't find my files in Finder.
In Finder under Favorites, I see no files when I select "All My Files." Is there a fix for this?
-
Documaker 10.3 vs 11.3
Hi everyone, We are seriously considering to propose upgrade to our current Documaker 10.3 to 11.3. I am sure there will be a lot of improvements to the 11.3 version. I am not able to find much information about the key differences between both the v
-
SAP PRELI for termination or hiring
Hi, i tried searching this question on sdn but did not get the complete answer. My question is - Does PLOGI PRELI works only for defaulting position while hiring(as written in its documentation) or does this also work for defaulting position in termi