Group Matrix Report Problem
when i build a group matrix report ,i only able to get the summary totals of columns (in the cross product ) at group level,but fail to get the summary totals of columns (in the cross product) at report level.So please tell me , how can i achieve this one?
Dear Waheed....I think u just have to set property of summary column
'Reset at = Report'
I this does'nt work then u should explain ur problem.
Kashif
Similar Messages
-
How to make Group Matrix Report in BI Publisher Template Builder for Word
Dear All
I have created a template in MSWord's BI Publisher for creating Matrix report, it is working fine, but i couldn't do it for Group matrix report. Kindly give me any kind of example regarding group matrix or nested group in column level and row level.
Regards
Haq Nawaz
A.F.Ferguson & Co
Edited by: 823804 on Dec 28, 2010 5:42 PMHey hi,
I m also trying to create template for matrix wih group. have you found any solution for this? if yes please forward me the information on my mail id [email protected] -
Group Left report: problem in order the columns
Hi,
I have a Group Left report in report6i with group A and Group B. Group A has columns AAA, BBB, CCC, DDD, EEE, FFF and Group B has coulmn YYY, ZZZ.
The problem is report does not take order by clause. It sort the report by first column of Group A, does not reflect my order by clause.
I created laxical variable in order to change order by clause dynamically.
Any suggestion?
Thanks in advance
DipHi,
I have a Group Left report in report6i with group A and Group B. Group A has columns AAA, BBB, CCC, DDD, EEE, FFF and Group B has coulmn YYY, ZZZ.
The problem is report does not take order by clause. It sort the report by first column of Group A, does not reflect my order by clause.
I created laxical variable in order to change order by clause dynamically.
Any suggestion?
Thanks in advance
Dip -
hi,
To get clear idea i am using emp table as an example.
I am creating a report using style GroupAbove and save it in .jsp file.
I took empno as group .
My report was displayed in this way:
page 1:
empno 7369
ename job sal comm deptno
simth clerk 800 0 20
empno 7499
ename job sal comm deptno
allen sales 1600 30 30
ramu manager 4000 0 20
and so on...
page2 :
empno 7499
ename job sal comm deptno
raju clerk 500 0 10
empno 7599
ename job sal comm deptno
ramu worker 300 0 40
..... so on
But My result should be in this way :
page 1:
empno 7369
ename job sal comm deptno
simth clerk 800 0 20
empno 7499(problem :Here i dont want to display heading of ename.... and so on)
allen sales 1600 30 30
ramu manager 4000 0 20
page 2:(if next page starts then should start with heading of ename... and so on)
ename job sal comm deptno
raju clerk 500 0 10
empno 7599
ramu worker 300 0 40
..... so on
If any one know this probelm help me soon
it's very urgent
with regard's
vijayYou may have been better to use deptno as the group column in your example, since I'm not sure that grouping on empno makes sense (and hence makes the example difficult to picture).
That said, it seems that the problem is that you only want the details headings to be displayed once per page (for a group above report). This isn't going to be too easy, and will require some coding, but bear with me.
The first thing to do is to create a PL/SQL package with a single boolean variable in it. This will be used a flag to determine whether the headers should be displayed.
In the before report trigger, set this variable to TRUE.
In the format trigger for the frame containing all the boilerplate labels, check to see if the variable is TRUE. If it is then set it to FALSE, and return TRUE.
If it's not then return FALSE (to suppress the display).
In the between pages trigger set the variable to TRUE.
Hope this helps (and that I've understood the problem),
Danny -
Group matrix report with an hierarchy table???
Hello,
I have a big trouble making up a report involving many tables and one of them having a many-to-many recursive relationship. The user has a defined request in having the information grouped.I'll give some more details. I would like to know if you have any ideas in how to structure the report..
Here are the tables:
ORG
(org_id not null,
org_name not null)
DNR
(dnr_id not null,
org_id not null,
dnr_age,
dnr_gender)
CS
(cs_id not null,
dnr_id not null)
Smpl
(smpl_id not null,
dnr_id notnull,
org_id,
smpl_tp not null,
cs_id,
meth,
notes)
Tr_map
(tr_id not null,
smpl_prnt not null,
smpl_chld,
pos)
Some data..
Smpl_id Dnr_id Org_id Smpl_tp Cs_id Meth Notes
107 101 137 tss a xxxx
118 112 137 tss ab xxxx
122 108 25 tss 3768 a xxxx
123 108 25 tss 3768 ab xxxx
124 108 25 blk c yyyy
125 108 25 sld d zzzz
126 108 25 blk c yyyy
tr_id Smpl_prnt Smpl_chld Pos
1 107
2 118
3 122
4 123
5 124 122 1
7 125 124 1
8 126 122 1
10 125 126 2
The user wants the data reported as follows:
Org name
Dnr_id, dnr_age etc...
Cs_id
Smpl_id, Smpl_tp (tss), Meth, Notes
Smpl_id,smpl_tp(blk), Meth, Notes ...
Smpl_id, smpl_tp(sld), Meth, Notes...
Cs_id
Smpl_id, Smpl_tp (tss), Meth, Notes
Smpl_id, smpl_tp(blk), Meth,Notes...
Smpl_id, smpl_tp(sld), Meth, Notes...
I think the grouped matrix would be the solution but I don't know how to do that with the hierarchy table to show the children and grandchildren as subgroups. Is that possible in a single query? How can I build a group matrix with multiple subgroups?
Thanks in advance.
simona
nullThe example given by Oracle (from the above link) using the following SQL for a matrix report is flawed.
SELECT DEPTNO, JOB, SUM(SAL)
FROM EMP
GROUP BY DEPTNO, JOB
ORDER BY DEPTNO, JOB
The SUM function handled by the query restricts you from doing so many things - especially when you want the empty fields to be filled by 0 (by using the Value if Null property).
If the query is changed to ''SELECT DEPTNO, JOB, SAL FROM EMP' , and use the SUM function in the wizard to build the Matrix cell, then the 'Value if Null' property can be used without any issues.
This also makes Section 25.6 (Add zeroes in place of blanks) of the documentation a joke.
Anyway, that's my cents worth.... -
Matrix Report Problem in Oracle Apps
Hii All,
I have created a matrix report in Orace Application using Oracle 6i. It running properly in Report 6i. But after registering in Oracle Apps,
It does not shows any output.
Database 10g
Report 6i
EBS Oracle 11i
Thanks
PSHi PS
Please check below links:
How to create a matrix report
How to create a matrix report
how to build matrix report
how to build matrix report
Oracle Reports Building Reports
http://download.oracle.com/docs/html/B10602_01/part4.htm
Regard
Helios -
Hi all, i want a solution from you guys.
I have a rdf report where size is shown there (like S, L, M, XL, XXL...etc). Later i have another matric report
SERIAL SIZE
1 Small
2 Mediam
3 Large
4 Extra-Large
5 Double-Excel
now i want to make a matrix report where matrix column is SIZE . But mu concern is, i want to show them the sequence of SERIAL.
How can i do that ...?replied you here:
Matrix Roport Calculation Problem -
Displaying subtotals for each group item in a Matrix or Group Matrix Report.
Hi,
I have generated a Report as follows:
month1 month2 month3
M1 R1 P1 x y z
P2 a b c
R2 P3 d e f
M2 R3 P4 g h i
R4 P5 k l m
Is it possible to display the subtotals per each category as follows:
month1 month2 month3
M1 R1 P1 x y z
P2 a b c
-------------------------- x+a y+b z+c
R2 P3 d e f
------------ (x+a)+d (y+b)+e (z+c)+f
M2 R3 P4 g h i
R4 P5 k l m
------------ g+k h+l i+m
---- ((x+a)+d) ((y+b)+e) ((z+c)+f)
+ (g+k) + (h+i) + (i+m)
waiting for the solution desparately.Your digram isn't very clear. It looks like you have a matrix that is made up of:
Across Group (G_Across) producing: month1, month2, month3
Down Group (G_Down1) producing: M1, M2
Down Group (G_Down2) producing: R1, R2, R3, R4
Down Group (G_Down3) producing: P1, P2, P3, P4, P5
and then you have the matrix cell values: x, y, z, a, b, ... m
Basically, you want to introduce a summary column at the G_Down2 level that is a running summary, resetting at G_Across.
To do this you need to create a matrix summary with the correct product order and reset value. The product order determines when the value is calculated. In your case, you want the value to be calculated: once Per G_Across, then once per G_Down1, then once per G_Down2. Leaving the reset value at "Report" will give you the subtotal values for all columns. You need to re-set this to G_Across since you want to only get a sub-total for each column.
Steps:
- Create a summary column in the data-model in the matrix group with the following:
Name: CS_SubTotal
Source: <your matrix cell column>
Product Order: G_Across G_Down1 G_Down2
Reset at: G_Across
- increase the vertical size of G_Across to make room for the new field
- increase the size of G_Down1 to fill up the space you've created
- increase the size of G_Down2 to fill up the space you created
- insert a field into this space (should be the matrix frame whose properties are:
Vertical Repeating Frame: G_Down2
Horizontal Repeating Frame: G_Across)
- bring up the property palette against the field and set the source to: CS_SubTotal -
Group Above Report problem...not able to display absent rows in date range
In my report query, I have numerous select statements that I must union together and group by a date. The ultimate goal is to get a count for all records in coordination with that date. Then in the report, I group all the data with the same date to ultimately put all counts on a page that coordinate with a single date.
Thing is...if there are no records associated with that date, the 'group by' clause makes the return data set not include those lines of output. I need these lines of output! Any suggestions??
Below is an example...
Select 'Program1', 'SubProgram1', 'Label 1', to_char(receipt_date, 'MM/DD/RRRR'), count(*)
from submissions
where receipt_date between '01-JUN-05' and '10-JUN-05'
and substr(submission_index,8,1) = '3'
and substr(submission_index,9,1) = '1'
group by substr(submission_index,8,1), substr(submission_index,9,1), to_char(receipt_date, 'MM/DD/RRRR')
union
Select 'Program2', 'SubProgram2', 'Label 2',
to_char(receipt_date, 'MM/DD/RRRR'), count(*)
from submissions
where receipt_date between '01-JUN-05' and '10-JUN-05'
and substr(submission_index,8,1) = '4' group by substr(submission_index,8,1), to_char(receipt_date, 'MM/DD/RRRR')
OUTPUT:
Program1 SubProgram1 Label 1 06/01/2005 4
Program1 SubProgram1 Label 1 06/02/2005 2
Program1 SubProgram1 Label 1 06/03/2005 6
Program1 SubProgram1 Label 1 06/04/2005 23
Program1 SubProgram1 Label 1 06/06/2005 71
Program1 SubProgram1 Label 1 06/07/2005 245
Program1 SubProgram1 Label 1 06/08/2005 76
Program1 SubProgram1 Label 1 06/10/2005 45
Program2 SubProgram2 Label 2 06/01/2005 66
Program2 SubProgram2 Label 2 06/02/2005 345
Program2 SubProgram2 Label 2 06/03/2005 89
Program2 SubProgram2 Label 2 06/04/2005 12
Program2 SubProgram2 Label 2 06/05/2005 3
Program2 SubProgram2 Label 2 06/06/2005 27
Program2 SubProgram2 Label 2 06/09/2005 98
Program2 SubProgram2 Label 2 06/10/2005 456
I need the missing lines to show up for Program 1 on 6/05 and 6/09
and Program 2 on 6/07 and 6/08create table your_table (
program varchar2(20),
subprogram varchar2(20),
label varchar2(20),
day date,
num number
insert into your_table values ('Program1', 'SubProgram1', 'Label 1', to_date('01-JUN-05'), 4);
insert into your_table values ('Program1', 'SubProgram1', 'Label 1', to_date('02-JUN-05'), 2);
insert into your_table values ('Program1', 'SubProgram1', 'Label 1', to_date('03-JUN-05'), 6);
insert into your_table values ('Program1', 'SubProgram1', 'Label 1', to_date('04-JUN-05'), 23);
insert into your_table values ('Program1', 'SubProgram1', 'Label 1', to_date('06-JUN-05'), 71);
insert into your_table values ('Program1', 'SubProgram1', 'Label 1', to_date('07-JUN-05'), 245);
insert into your_table values ('Program1', 'SubProgram1', 'Label 1', to_date('08-JUN-05'), 76);
insert into your_table values ('Program1', 'SubProgram1', 'Label 1', to_date('10-JUN-05'), 45);
insert into your_table values ('Program2', 'SubProgram2', 'Label 2', to_date('01-JUN-05'), 66);
insert into your_table values ('Program2', 'SubProgram2', 'Label 2', to_date('02-JUN-05'), 345);
insert into your_table values ('Program2', 'SubProgram2', 'Label 2', to_date('03-JUN-05'), 89);
insert into your_table values ('Program2', 'SubProgram2', 'Label 2', to_date('04-JUN-05'), 12);
insert into your_table values ('Program2', 'SubProgram2', 'Label 2', to_date('05-JUN-05'), 3);
insert into your_table values ('Program2', 'SubProgram2', 'Label 2', to_date('06-JUN-05'), 27);
insert into your_table values ('Program2', 'SubProgram2', 'Label 2', to_date('09-JUN-05'), 98);
insert into your_table values ('Program2', 'SubProgram2', 'Label 2', to_date('10-JUN-05'), 456);
SELECT yt.program
, yt.subprogram
, yt.label
, nvl(yt.num,0) NUM
, days.date_value
FROM ( select (to_date('11-JUN-05','DD-MON-YY') - day) date_value
from ( select rownum day
from dual
connect by rownum < 11
) days
, your_table yt
where yt.day(+) = days.date_value
order by yt.program, days.date_value
PROGRAM SUBPROGRAM LABEL NUM DATE_VALUE
Program1 SubProgram1 Label 1 4 6/1/2005
Program1 SubProgram1 Label 1 2 6/2/2005
Program1 SubProgram1 Label 1 6 6/3/2005
Program1 SubProgram1 Label 1 23 6/4/2005
Program1 SubProgram1 Label 1 71 6/6/2005
Program1 SubProgram1 Label 1 245 6/7/2005
Program1 SubProgram1 Label 1 76 6/8/2005
Program1 SubProgram1 Label 1 45 6/10/2005
Program2 SubProgram2 Label 2 66 6/1/2005
Program2 SubProgram2 Label 2 345 6/2/2005
Program2 SubProgram2 Label 2 89 6/3/2005
Program2 SubProgram2 Label 2 12 6/4/2005
Program2 SubProgram2 Label 2 3 6/5/2005
Program2 SubProgram2 Label 2 27 6/6/2005
Program2 SubProgram2 Label 2 98 6/9/2005
Program2 SubProgram2 Label 2 456 6/10/2005The four null rows will not show up because the date is used at least once between program 1 or program 2. Will there only ever be two programs to chose from? Any one else got any ideas around this? -
Hi, I am working on a report with the following example layout...
customer1
.............1kg 5kg 10kg Total 1kg 5kg
contract1
contract2
estimate1
estimate2
actual1
actual2
totals
customer2
.............1kg 5kg 10kg Total 1kg 5kg
contract1
contract2
estimate1
estimate2
actual1
actual2
totals
The kg columns are fetched from a column in the database. These are dynamic and can vary. All to the left of total are for a particular type of product and those to the right are another. So far I have managed to create the matrix for contracts only and up to the totals column.
I thought I should have one query for the customers then outer join customer code to another query for the matrix. The matrix will need to use a union for the contracts, estimates and actuals tables. Please advise whether this is the best solution. As yet I am unable to implement it to completion.
Thanks in advance.
Nick.Rana,
You can use formula columns and summary columns with placeholders to get totals at report level.
Hope this helps
Tony S. Garabedian -
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 -
Hi ,
I have a report, which is to be built as matrix report. Its a
matrix report with group. But this report has some calculations
to be done at each group level. Can any one tell me how to do
it ? Here is the lay out of the matrix report. This is very
urgent . Please help me out.
Thanks
Feroz
COUNTRY ----> This is the top group
<---- GROUPS------> <----COLUMNS MOVING ACCROSS ------>
DEPT CATEGORY BRAND Month1 Month2 Month3 Month 4 .....
HHN LAUNDRY SURF Sales 800000 |
Units 20000 |
Avg. Price 40 |=> These are the row values
%Sales 60% |-\These are the calculation
%Units 40% |-/
LAUNDRY TOTAL Sales
Units
Avg. Price
% Sales
% Units
HHN TOTAL Sales
Units
Avg. Price
% Sales
% Units
GRAND TOTAL Sales
Units
Avg. Price
% Sales
% UnitsThere is a specific reports discussion forum that you should use
for these questions.
But to answer your question.
Create the report with the wizards and choose group matrix
report.
If you can't define all your calculation using the wizards,
Then add the calculation to the data_model manually, making sure
to add them in the group above the data that they calculate. -
Hello, Expert,
Could you please help me with the following problem? Thanks in advance!
I have designed the matrix report (SSRS 2012) with database table structure looks like below.
Week
Version
Count
Week1
V1.1
4000
Week1
V1.2
4000
Week1
V1.3
4000
Week2
V1.1
3000
Week2
V1.2
3000
Week2
V1.3
3000
Week3
V1.1
2000
Week3
V1.2
2000
Week3
V1.3
2000
Week4
V1.1
1000
Week4
V1.2
1000
Week4
V1.3
1000
The matrix report displays like below. Column grows based on no of Week in the table.
Week1
Week2
Week3
Week4
V1.1
4000
3000
2000
1000
V1.2
4000
3000
2000
1000
V1.3
4000
3000
2000
1000
What I want to do now is: instead of the Count values, I need to calculate the percentage of each week over the
Count in Week1 so that each cell displays Count(Week2)/Count(Week1), Count(Week3)/Count(Week1), etc. What is the SSRS expression for that? I’m new to SSRS, Please help!Heidi,
Thank you so much for your reply and solution! Now I know how to get the first field in a group. But I can't apply your solution directly just yet because in order to explain my problem I simplified my data structure. My real data structure has a nested
group like this:
Week VersionMajor VersionMinor Count
Week1 V1 V1.1 2000
Week2 V1 V1.1 1500
Week3 V1 V1.1 800
Week1 V1 V1.2 1000
Week2 V1 V1.2 500
Week3 V1 V1.2 200
Week1 V1 V1.1 2000
Week2 V1 V1.1 1500
Week3 V1 V1.1 800
Week1 V1 V1.2 1000
Week2 V1 V1.2 500
Week3 V1 V1.2 200
Here is the query for the above data:
SELECT 'Week1' AS Week, 'V1' AS VersionMajor, 'V1.1' AS VersionMinor, 2000 AS Count
UNION ALL
SELECT 'Week2' AS Week, 'V1' AS VersionMajor, 'V1.1' AS VersionMinor, 1500 AS Count
UNION ALL
SELECT 'Week3' AS Week, 'V1' AS VersionMajor, 'V1.1' AS VersionMinor, 800 AS Count
UNION ALL
SELECT 'Week1' AS Week, 'V1' AS VersionMajor, 'V1.2' AS VersionMinor, 1000 AS Count
UNION ALL
SELECT 'Week2' AS Week, 'V1' AS VersionMajor, 'V1.2' AS VersionMinor, 500 AS Count
UNION ALL
SELECT 'Week3' AS Week, 'V1' AS VersionMajor, 'V1.2' AS VersionMinor, 200 AS Count
UNION ALL
SELECT 'Week1' AS Week, 'V1' AS VersionMajor, 'V1.1' AS VersionMinor, 2000 AS Count
UNION ALL
SELECT 'Week2' AS Week, 'V1' AS VersionMajor, 'V1.1' AS VersionMinor, 1500 AS Count
UNION ALL
SELECT 'Week3' AS Week, 'V1' AS VersionMajor, 'V1.1' AS VersionMinor, 800 AS Count
UNION ALL
SELECT 'Week1' AS Week, 'V1' AS VersionMajor, 'V1.2' AS VersionMinor, 1000 AS Count
UNION ALL
SELECT 'Week2' AS Week, 'V1' AS VersionMajor, 'V1.2' AS VersionMinor, 500 AS Count
UNION ALL
SELECT 'Week3' AS Week, 'V1' AS VersionMajor, 'V1.2' AS VersionMinor, 200 AS Count
And my matrix table looks like this:
What I need to do is to calculate the percentage of each week over week1 for
1) V1 Total
2) V1.1
3) V1.2
I can't use your solution directly because I need to apply Sum function for each cell and the Sum function gives me error when I try to use it on the denominator
First(Fields!Count.Value,"VersionMinor"). If you could help me further to get to the final solution, I'd really appreciate it!!
Happy New Year! -
How to build a Matrix with Group Left Report
I want to build a Matrix with Group Left Report,not Matrix with Group Above Report,i am still finding the solution, any help is useful.
thanks
<[email protected]>Hi,
The problem in your output is not clear. The report output should appear like:
Order Mode.....Sales_Rep_ID > 10..11..12..
Online.........Order Status
...............A..............x....x...x
...............B..............x....x...x
...............C..............x....x...x
Order Mode.....Sales_Rep_ID > 10..11..12..
Retail.........Order Status
...............A..............x....x...x
...............B..............x....x...x
...............C..............x....x...x
Here "Order Mode" is the group field (it repeats for every group). Could you pl specify what output you are getting?
If the problem is that you don't want the Title (like "Order Mode" in the above example) to print in every group, just place it outside the group repeating frame. It will print only once.
Navneet. -
Supress repeated labels in group Above reports o matrix group above reports
Hi,
I have a problem, because I´m brand new in reports.
I've defined same reports.
When I defined a Group Above Report or a Matrix with Group Above Report the labels appear repeated in the same page:
Year 2006
Level 1 Range 1-3 months 3-6 months 6-12 months
Age
< 16 1
16-17 1 3
18-24 12 6 2
25 4 5 2Total Level 1: 17 14 5
Level 2 Range 1-3 months 3-6 months 6-12 months
Age
< 16 1
16-17 2 1
18-24 8 12 2
25 5 4 3Total Level 1: 15 17 6
Is it possible not to repeat the labels "Range 1-3 months 3-6 months 6-12 months",? I want them to appear once per page.
How can I do it?
Please may anyone help me?
thanks
BeatrizWhy should that be a bug? You have a custom requirement and have to find a way to fulfill it. But, what is your actual sorting order? Do you have only this three departments? If so, you could add an addtional column in your query like
DECODE(DEPT, 20, 1, 10, 2, 30, 3, 4) SORTINGput that column in the same group as dept and sort after that new column.
Maybe you are looking for
-
Installing Adobe Reader-Error msgs
I am trying to update my adobe reader on my computer. I keep getting an error message stating that the indexing service filter daemon is in use. I have closed everything and it says it gets to 96% and gives the same error message. What should I do n
-
HT202157 My apple tv is unresponsive.
My apple tv is unresponsive. It is "stuck" on the screen saver of rotating pictures. I have tried holding down the menu and down arrow for 6 seconds and unplugging as suggested. Any suggestions?
-
HP 250 G1 i can`t use N wireless speeds
Hello i have strange problem with my laptop.. my laptop have ralink wireless adapter. My router is d-link 615 and support 300Mbps. What i found today is , i`m connected to router with Wireless-G (54 Mbps) from my laptop but ralink suppor Wireless-N
-
I just received my new MacBook Pro 13, and while updating software and installing Office and Acrobat, found that I could not update iMove or iPhoto, because they were purchased under a different account. I've only ever had one apple ID, and iMovie a
-
ALV list with count of the table
Dear all, My requirement is i want display the output as alv list along with the count of the table . i got the count but unable to diplay the below the list. please suggest me. Thanks& Regards, RP