Group matrix report
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
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] -
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 -
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.... -
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 -
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. -
Calculate percentage between two rows in a matrix report with a single row group in SSRS 2008
I need your help. I have a matrix report in ssrs 2008. The report contain one field value column and one value column. I need to calculate a percentage for two values. For example : row 1 : Discount 10 Row 2 : Sales 100 Result : 10/100. I have only one
row group, I need to have a condition where Field = Discount % on Revenue then Discount/Total Turnover. Because of the grouping for total, I am not being able to calculate the %, its just totalling the % discount. Kindly refer to the snapshot of the
report.Hi Thanks a lot for your answer, but unfortunately it didn't work,the report is reading from a stored procedure which I have unpivot to convert all columns into rows, so that's why Discount % on Revenue, Discount and Total Turnover is found in one column.
So the Field!Col.Value is the Discount % on Revenue, Discount and Total Turnover. I have tried to change the code to
"=SUM(IIF(Fields!Col.Value = "Discount",Fields!value.Value),0))
/IIF(SUM(IIF(Fields!Col.Value = "Turnover Total",Fields!value.Value),0)) = 0 ,
Nothing,SUM(IIF(Fields!Col.Value = "Turnover Total",Fields!value.Value),0)))" but to no avail. Any other suggestion will be most welcome.
Thanks.
If everything you're getting from stored procedure then you need to calculate and bring the value from there itself.
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
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. -
How can I get the second group and report totals in Matrix report?
Hi,
I have created a matrix report with 2 break Groups.
Iam getting columns totals for the first group, but not for the second group and the report totals.
How can I get the second group and report totals for each month?
Thanks.
Ram.Hi Ram,
If you want a total at any group-level, go to the particular group in the data model, insert a summary column in the group, and select
Reset At > appropriate Group Name
For report level summaries, you must create the summary column outside of all groups.
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. -
Matrix report with group.
dear all,
can anyone guide me how to build a matrix report with group using scott schema.
i can not be able to build a query.
Thanks
Muhammad NadeemThe 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 in XML publisher with dynamic column groups
hi,
i have one matrix report in txt format having 5 columns under 1 month heading.
Now i want that all these 5 columns should repeat for multiple months depending upon input parameters.
S. No.
Organization Name
Organization Id
Project Code
1
GRANDWOODS 2
6825
1495
month
January
Wrk Count Ven
Wrk Cont Prw New
Wrk Amt Ven New
Wrk Amt Prw New
Tot Amt New
New
0
0
0
0
0
Existing
0
1
0
255000
255000
Total
0
1
0
255000
255000
rtf template is as follows:
S. No.
Organization Name
Organization Id
Project Code
F CS_11
ORGANIZATION_NAME
ORGANIZATION_ID
PROJECT_CODE E
month
Wrk Count Ven
Wrk Cont Prw New
Wrk Amt Ven New
Wrk Amt Prw New
Tot Amt New
New
F WRK_COUNT_VEN_NEW
WRK_CONT_PRW_NEW
WRK_AMT_VEN_NEW
WRK_AMT_PRW_NEW
TOT_AMT_NEW
Existing
F WRK_CONT_VEN_EXISTING
WRK_CONT_PRW_EXISING
WRK_AMT_VEN_EXISTING
WRK_AMT_PRW_EXISTING E
TOT_AMT_EXIS
Total
TOT_CONT_VEN_NEW_EXIS
TOT_CONT_PRW_NEW_EXIS
TOT_AMT_VEN_NEW_EXIS
TOT_AMT_PRW_NEW_EXIS
TOT E
E
now, please help me as to how repeat these 5 columns for multiple months.
if anybody has some template for matrix report with multiple coloumn group repeatation, pls. share along with sample data.
regards,
mohit guptaHi,
Check this link for developing the matrix report
Oracle Database and Oracle Applications: Matrix Report in XML Publisher
Regards
Srikkanth -
Matrix report with two across groups
Hi all,
I am facing a problem in making a multi line matrix report.
actually I need to make a matrix report with two "across groups", but unable to get desired result.
if any body has any idea, please share with me.
regards
AtaNo,
you must have only 1 query which extracts all your data:
A,q1,10
A,q2,20
A,q3,30
B,q1,40
B,q3,50
C,q2,60
C,q3,70
Open report builder and create a new report from wizard.
Select the first option accordingly with your requirements and go next.
Type a name for your report in the title field then select "Matrix" as layout and go next.
Select SQL Query and go next.
Type your query.
Select the data you want on the rows (i.e. A, B, C...) and click on the ">" button in the Matrix Row Fields section, then go next.
Select the data you want on the columns (i.e. q1, q2, q3...) and click on the ">" button in the Matrix Column Fields section, then go next.
Select the data you want on the cells(i.e. 10,20,30...) and click on the "Sum >" button in the Matrix Cell Fields section, then go next.
Add some totals, if you need them.
Go next and finish.
Now you have a report with the following layout:
Q1 Q2 Q3 TOT
A 10 20 30 60
B 40 50 90
C 60 70 130
TOT 50 80 150 280Bye
Raffy
Maybe you are looking for
-
Hi. I'm having another serious problem with CS4 (the version that comes with CS5 when you don't have 64 bit capability. I just finished a project, had saved it, and then had switched over to Adobe Encoder to create a finished flash video (which worke
-
How do i change the default itunes account on my mac book?
i got my wife a new mac book for our anniversary, and i got the old one, but i cannot set my itunes account to be the default, in order to access my account i have to plug in my ipod, i'm sure it's an easy fix, i just can't figure it out
-
I cant write a review in itunes store
Why suddenly i cant write any review on any app i downloaded?it says i need to download the app before i can make a review even if i downloaded the app over and over again, cant find any solution
-
I have a custom list having Id and name columns and another document library list having ID column with a document and when i click the custom list id column it should redirect to document library items. expected output: Custom list: Id Name 1 AAA D
-
Reader closes when I use a command
I upgraded to 11 and could not open any files. Then I removed that and tried installing 10. Now I can open pdf's, but everytime I try to print or to open the preference command so I can check on protected mode, the software closes. I am trying to