Create Summary Report w/Detail Reports
I have created a detail report (or tab within the document) that shows the monthly revenue per customer & calculates average monthly revenue per customer. How can I create a summary report (tab within the document) that only shows the customer & the average revenue per customer (so it does not bring back multiple lines for each customer)? This would allow my users a quick view of the average rev per customer and then could go into the detail to see the monthly rev per customer.
Thanks everyone, sorry for not being more descriptive (obviously I'm new to this!). So in my document I have a simple table that looks something like this:
Name Contract Date Month Revenue
John Doe 3/1/2011 April 2011 $1.00
John Doe 3/1/2011 May 2011 $1.00
Monthly Ave: $1.00
Jane Doe 1/1/2011 March 2011 $1.00
Jane Doe 1/1/2011 April 2011 $1.00
Jane Doe 1/1/2011 March 2011 $1.00
Monthly Ave: $1.00
The monthly Ave is a simple calculation (=ave) that I added when I split the table.
What I'd like to do is have another "tab" (report) in the same document that summarizes that data to be something like this:
Name Contract Date Monthly Ave
John Doe 3/1/2011 $1.00
Jane Doe 1/1/2011 $1.00
Similar Messages
-
Creating summary report in an excel format
<p>I would like to create a monthly summary report in one page that would capture the sum of certain group fields in an orderly format. for example </p><p><em>issues weekly monthly year</em> </p><p><strong>total 45 200 2100</strong></p><p> code1 10 50 500</p><p>code 2 20 80 700</p><p>code3 15 70 900</p><p> <strong>Total open 55 25 65</strong></p><p>Agency1 40 15 35 </p><p>Agency2 5 5 10</p><p>Agency3 10 5 20</p><p><strong>Total Closed 40 50 425</strong></p><p>typeA 15 20 150</p><p>typeB 15 20 175</p><p>typeC 10 10 100</p><p>The totals are summary fields and codes and types are group fields with summary totals</p>
duplicate - please do not post multiple times
-
Create summary report of only certain responses
Is it possible to create a summary report based on only a few of the responses received? I can't find a way to select certain responses and see charts only based on them. Is it possible?
Thanks!In the latest release, the filtering UI will now be available in both the View Responses and Summary Report tabs. When a filter is set it will change the results shown in both tabs. This should provide a lot more flexibility when generating Summary Reports.
Randy -
Hoe top create summary and detail report using ABAP QUERY
Hi ,
Can any one suggest me how to create summary and detailed report using ABAP Quey.
Regards,
Raghu.Hi,
Table Declaration
tables:mara,mast.
*Declaring the internal table
data: begin of itab_new occurs 0,
matnr like mara-matnr, "Material No
ernam like mara-ernam, "Material Created by
mtart like mara-mtart, "Material Type
matkl like mara-matkl, "Material Desc
werks like mast-werks, "Plant
aenam like mast-aenam, "BOM created
stlal like mast-stlal, "Alternative BOM
end of itab_new.
select-options: p_matnr for mara-matnr.
CODE A : Retrieving the data from the database
select f~matnr f~ernam f~mtart f~matkl m~werks m~aenam m~stlal
into table itab_new
from mara as f inner join mast as m
on f~matnr = m~matnr
where f~matnr in p_matnr.
CODE B : Retrieving the data from the database.
SELECT FMATNR FERNAM FMTART FMATKL MWERKS MAENAM M~STLAL
INTO TABLE ITAB_NEW
FROM MARA AS F INNER JOIN MAST AS M
ON FMATNR = MMATNR
WHERE F~MATNR = P_MATNR.
SORT ITAB_NEW BY ERNAM.
loop at itab_new.
write:/5 itab_new-matnr,itab_new-ernam,itab_new-mtart,itab_new-matkl,itab_new-werks,itab_new-aenam,itab_new-stlal.
endloop.
*TABLES: MARA , MAST.
*DATA:BEGIN OF ITAB_NEW OCCURS 0,
MATNR LIKE MARA-MATNR,
ERNAM LIKE MARA-ERNAM,
MTART LIKE MARA-MTART,
MATKL LIKE MARA-MATKL,
END OF ITAB_NEW.
SELECT MATNR ERNAM MTART MATKL
INTO TABLE ITAB_NEW
FROM MARA
WHERE MTART = 'T'
ORDER BY MATNR ERNAM MTART MATKL.
*DATA: BEGIN OF ITAB OCCURS 0,
MATNR LIKE MARA-MATNR,
END OF ITAB.
Thank U,
Jay.... -
Creating detail and summary report tabs
Hi Everyone,
I want to create two reports on the same query infact two tabs one showing the summary and the other one showing the details.Suppose I have a column Plant in the summary report tab.I want when I click on a particular plant the detail of that particular plant should appear on the details report tab.Can anyone please explain how to proceed in this.
Regards,
NeerajHi Neeraj,
what sunil mentioned is for BI 4.0 , if you are using older versions,
check below link, from page 20 it will help you to solve the problem.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0daee1d-0e38-2d10-0c91-8bb4ab5aa266?QuickLink=index&overridelayout=true
Steps:
1> duplicate the query,
so query1 and query 2 will be available.
2> In query 2 use Plant as optional prompt and deselect other options.
For summary report use the objects which is from query1
For detail report use the objects which is from query2
Now in summary report click on plant column Right clik>>> hyperlink>>
paste the following code by changing server and port name
and click parse.
http://servername:8080/OpenDocument/opendoc/openDocument.jsp?sType=wid&iDocID=3333&lsWindow=Same&sReportName=DeatailReport&lsSEnter_Plant=(=[Query 1].[Plant])
in the above link you also has to mention the sReportName becaous you are linking the same document detail report.
and also Enter_Plant here its prompt descriprtion change according to your requirement.
to get the idocid right click on the report and click properties.use the number in the link.
Regards,
Ranganath -
Summary Report using Master-Detail Data on Siebel BI Publisher Report
I have to create a Summary Report using Master-Detail relationship. Report fields are Account Name, Special Need Type, Customer Status, No of Customers, No of Claims. I am using rtf to create template and any help is highly appreciated
<?xml version="1.0" encoding="UTF-8" ?>
- <ListofIO>
- <ListOfBipCustomerSpecialNeeds>
- <Account>
<Name>CVNE</Name>
- <ListOfContact>
- <Contact>
<SpecialNeedsFlg>Y</SpecialNeedsFlg>
<SpecialNeedsType>Large Text</SpecialNeedsType>
<PersonUId>1-6NI9</PersonUId>
- <ListOfContact_Claims>
- <Contact_Claims>
<AccountNumber>TEST0015362272</AccountNumber>
<ClaimNumber>1-4FVL</ClaimNumber>
<ClaimStatus>Closed</ClaimStatus>
<ClaimGBPAmount />
</Contact_Claims>
</ListOfContact_Claims>
</Contact>
- <Contact>
<SpecialNeedsFlg>Y</SpecialNeedsFlg>
<SpecialNeedsType>Braille</SpecialNeedsType>
<PersonUId>1-L0A</PersonUId>
- <ListOfContact_Claims>
- <Contact_Claims>
<AccountNumber />
<ClaimNumber>1-ACX6</ClaimNumber>
<ClaimStatus>Open</ClaimStatus>
<ClaimGBPAmount>818.18196694218</ClaimGBPAmount>
</Contact_Claims>
- <Contact_Claims>
<AccountNumber />
<ClaimNumber>1-GI58</ClaimNumber>
<ClaimStatus />
<ClaimGBPAmount>45454.099173473</ClaimGBPAmount>
</Contact_Claims>
</ListOfContact_Claims>
</Contact>
- <Contact>
<SpecialNeedsFlg>Y</SpecialNeedsFlg>
<SpecialNeedsType>Large Text</SpecialNeedsType>
<PersonUId>1-6FPP</PersonUId>
- <ListOfContact_Claims>
- <Contact_Claims>
<AccountNumber>CVNE</AccountNumber>
<ClaimNumber>1-7BRL</ClaimNumber>
<ClaimStatus>Reviewed</ClaimStatus>
<ClaimGBPAmount>562</ClaimGBPAmount>
</Contact_Claims>
</ListOfContact_Claims>
</Contact>
</ListOfContact>
</Account>
<Login>SADMIN</Login>
</ListOfBipCustomerSpecialNeeds>
</ListofIO>
Edited by: user2298324 on 13-Aug-2010 09:36Thanks for the reply. The many to many relationship between Claims and Payments are achieved through intersection table in siebel. When Customer has multiple claims, single payment issued for both claims. Also single claim can multiple payments such (part compensation, interests, final compensation etc)
-
Hi All,
I want to create a summary and detail report in two different layouts on one single report,based the input summary or the detail report shoud execute...,how to do the same.
Thanks in advance
C.SomasundaramHi,
bring your two different layouts in seperate frames and write format triggers on this frames to show or suppress them (depending on your input). Connect the two frames with an collabsing anchor.
Regards
Rainer -
Datawarehouse query detail report result doesn't match summary report.
Hello,
In our DW, we run a detail report query ( like below No. 1) , while in the summary report, in which the query is partially based on aggregated table T_AGG_UNC_GROSS (like below No.2), the query result doesn' match the query result of the details report. (supposed to match exactly)
To pick out the problem why summary report (like below NO.3) doesn't match details report. I put two filters in the details query with the filter is "year 2007", filter location is "California")
I can get 295 selected.
while I put above two filters in summary report, get no row selected.
I suspect aggregation table has some problem (wrong aggregated).
Is there any method I can pick out the problem behind?
thanks a lot in advance.
--1.detail report
select D1.c14 as c1,
D1.c13 as c2,
D1.c12 as c3,
D1.c11 as c4,
D1.c10 as c5,
D1.c15 as c6,
D1.c9 as c7,
D1.c8 as c8,
D1.c7 as c9,
D1.c6 as c10,
D1.c5 as c11,
D1.c16 as c12,
D1.c17 as c13,
D1.c18 as c14,
D1.c19 as c15,
D1.c4 as c16,
D1.c3 as c17,
D1.c20 as c18,
D1.c2 as c19,
D1.c21 as c20,
D1.c22 as c21,
D1.c1 as c22
from
(select /*+ full(T278878) full(T144662) full(T144546) full(T144557) full(T144665) full(T155155) */ sum(T144442.FINAL_BILL_AMOUNT) as c1,
sum(T144400.WRITE_OFF_AMOUNT) as c2,
case when T144416.FMCI_IND = 'Y' then 'Yes-fMCI' else 'No-fMCI' end as c3,
T144442.IS_FIOS_FLAG as c4,
T314105.DATE_DESC as c5,
T144442.CYCLES_DELINQUENT as c6,
T144590.DATE_DESC as c7,
T144564.DATE_DESC as c8,
T144557.LOB_CODE as c9,
case when T144442.IS_NEVER_PAY_FLAG = 1 then 'Yes-NP' else 'No-NP' end as c10,
T144416.CLASS_OF_SERVICE as c11,
T144416.ACCOUNT_NAME as c12,
T144416.BTN as c13,
T144416.ACCOUNT_NUMBER as c14,
T144634.ACCOUNT_STATUS as c15,
T144687.CSG_ID as c16,
T441666.DISCONNECT_REASON_DESC as c17,
T144612.LOB_CODE as c18,
T144612.STATE_CODE as c19,
T144640.DATE_DESC as c20,
T144586.PRIMARY_CIC_CATEGORY as c21,
T144586.SECONDARY_CIC_DESC as c22
from
V_D_STATE T144612 /* V_D_STATE_UNCGRO */ ,
D_DISCONNECT_REASON T441666 /* D_DISCONNECT_REASON_UNCG */ ,
D_CUSTOMER_SERVICES_GROUP T144687 /* D_CUSTOMER_SERVICES_GROUP_UNCGRO */ ,
V_D_ACCOUNT_STATUS_FINAL T144634 /* V_D_ACCOUNT_STATUS_UNCGRO */ ,
D_DATE T144640 /* D_DATE_UNCGRO */ ,
V_D_CARRIER_CODES T144586 /* V_D_CARRIER_CODES_UNCGRO */ ,
F_UNCOLLECTIBLES T144400 /* F_UNCOLLECTIBLES_UNCGRO */ ,
D_ACCOUNT T144416 /* D_ACCOUNT_UNCGRO */ ,
D_ACCOUNT_DETAIL T144442 /* D_ACCOUNT_DETAIL_UNCGRO */ ,
D_LINE_OF_BUSINESS T144557 /* D_LINE_OF_BUSINESS_UNCGRO */ ,
D_DATE T144564 /* D_DATE_UNCGRO_CONNECT */ ,
D_DATE T144590 /* D_DATE_UNCGRO_FINAL */ ,
D_DATE T314105 /* D_DATE_UNCGRO_DISCONNECT */
where ( T144400.ORGANIZATION_ID = T144612.ORGANIZATION_ID and T144416.ACCOUNT_STATUS_ID = T144634.ACCOUNT_STATUS_ID and T144400.WRITE_OFF_DATE = T144640.DATE_ID and T144400.CIC_CODE_ID = T144586.CIC_CODE_ID and T144416.CUSTOMER_SERVICE_GROUP = T144687.CSG_CD and T144400.ACCOUNT_ID = T144442.ACCOUNT_ID and T144400.ACCOUNT_ID = T144416.ACCOUNT_ID and T144400.DISCONNECT_DATE = T314105.DATE_ID and T144400.WRITEOFF_REFERRAL_IND = 'WRO' and T144416.DISCONNECT_REASON = T441666.DISCONNECT_REASON and T144612.U_STATE_DESC = 'California - BUSINESS' and T144640.YEAR_DESC = 'Year 2007' and T441666.DISCONNECT_REASON_DESC <> 'G' and T144416.FINAL_BILL_DATE = T144590.DATE_ID and T144416.CONNECTION_DATE = T144564.DATE_ID and T144416.LOB_ID = T144557.LOB_ID and T441666.DISCONNECT_REASON_DESC <> 'H' )
group by T144416.ACCOUNT_NAME, T144416.ACCOUNT_NUMBER, T144416.BTN, T144416.CLASS_OF_SERVICE, T144442.IS_FIOS_FLAG, T144442.CYCLES_DELINQUENT, T144557.LOB_CODE, T144564.DATE_DESC, T144586.PRIMARY_CIC_CATEGORY, T144586.SECONDARY_CIC_DESC, T144590.DATE_DESC, T144612.LOB_CODE, T144612.STATE_CODE, T144634.ACCOUNT_STATUS, T144640.DATE_DESC, T144687.CSG_ID, T314105.DATE_DESC, T441666.DISCONNECT_REASON_DESC, case when T144416.FMCI_IND = 'Y' then 'Yes-fMCI' else 'No-fMCI' end , case when T144442.IS_NEVER_PAY_FLAG = 1 then 'Yes-NP' else 'No-NP' end
) D1;
295 rows selected.
--2. aggregation table T_AGG_UNC_GROSS
create table T_AGG_UNC_GROSS parallel nologging as
SELECT a.account_id,a.ORGANIZATION_ID,a.UNC_LOB_ID,
MAX (a.WRITEOFF_REFERRAL_IND) AS WRITEOFF_REFERRAL_IND,
MAX (a.WRITE_OFF_DATE) AS WRITE_OFF_DATE,
COUNT (1) AS NO_OF_UNC,
MAX(a.DISCONNECT_DATE) as DISCONNECT_DATE,
sum(a.WRITE_OFF_AMOUNT) as WRITE_OFF_AMOUNT
FROM f_uncollectibles a
GROUP BY a.account_id,a.ORGANIZATION_ID,a.UNC_LOB_ID;
---3. sumarry resport (query)
select SUBSTR (f.WRITE_OFF_DATE, 5, 2)
|| '/'
|| SUBSTR (f.WRITE_OFF_DATE, 7, 2)
|| '/'
|| SUBSTR (f.WRITE_OFF_DATE, 0, 4)
writeoff_date,
'ALL CIC',
o.U_STATE_DESC,
s.U_ACCOUNT_STATUS,
rl.RISK_LEVEL,
d.Amount_Range_ID || ' - WR',
f.WRITEOFF_REFERRAL_IND,
fi.fios_flag_desc,
DR.DISCONNECT_REASON || '-' || DR.DISCONNECT_REASON_DESC,
b.BEHAVIOR_SCORE || ' - B',
cs.csg_cd || ' - CG',
CASE WHEN d.IS_NEVER_PAY_FLAG = 1 THEN 'Yes-NP' ELSE 'No-NP' END
AS Neverpay_Ind,
CASE WHEN u.FMCI_IND = 'Y' THEN 'Yes-fMCI' ELSE 'No-fMCI' END
AS FMCI_IND,
lob.DESCRIPTION,
COUNT (f.Account_id) No_of_Accounts,
SUM (d.NO_DENIAL_NOTICES) NO_DENIAL_NOTICES,
SUM (d.CYCLES_DELINQUENT) CYCLES_DELINQUENT,
sum(f.WRITE_OFF_AMOUNT) WRITE_OFF_AMOUNT ,
sum(d.FINAL_BILL_AMOUNT) FINAL_BILL_AMOUNT
FROM t_agg_unc_gross f,
d_account u,
d_account_detail d,
D_DISCONNECT_REASON DR,
d_writeoff_amount_range a,
v_d_account_status_final s,
D_BEHAVIOR_RANGE b,
v_d_state o,
d_Fios_Indicator fi,
d_risk_level rl,
d_customer_services_group cs,
D_UNCOLLECTIBELS_LOB lob,
D_DATE
WHERE f.account_id = u.account_id
AND u.account_id = d.account_id
AND d.Amount_Range_ID = a.wo_range_id
AND d.IS_FIOS_FLAG = fi.FIOS_FLAG
AND u.Account_Status_ID = S.ACCOUNT_STATUS_ID
AND u.RISK_LEVEL_ID = rl.risk_level_id
AND o.organization_id = f.organization_id
AND dr.DISCONNECT_REASON = u.DISCONNECT_REASON
AND d.BEHAVIOR_SCORE12 = b.BEHAVIOR_SCORE
AND u.CUSTOMER_SERVICE_GROUP = cs.csg_cd
AND Dr.disconnect_reason NOT IN ('H', 'G')
AND lob.LOB_UNC_ID =f.UNC_LOB_ID
AND o.U_STATE_DESC = 'California - BUSINESS'
AND D_DATE.YEAR_DESC = 'Year 2007'
and u.FINAL_BILL_DATE = D_DATE.DATE_ID
--and u.CONNECTION_DATE = D_DATE.DATE_ID
GROUP BY SUBSTR (f.WRITE_OFF_DATE, 5, 2)
|| '/'
|| SUBSTR (f.WRITE_OFF_DATE, 7, 2)
|| '/'
|| SUBSTR (f.WRITE_OFF_DATE, 0, 4),
'ALL CIC',
o.U_STATE_DESC,
s.U_ACCOUNT_STATUS,
rl.RISK_LEVEL,
d.Amount_Range_ID || ' - WR',
f.WRITEOFF_REFERRAL_IND,
fi.fios_flag_desc,
DR.DISCONNECT_REASON || '-' || DR.DISCONNECT_REASON_DESC,
b.BEHAVIOR_SCORE || ' - B',
cs.csg_cd || ' - CG',
lob.DESCRIPTION,
CASE WHEN d.IS_NEVER_PAY_FLAG = 1 THEN 'Yes-NP' ELSE 'No-NP' END,
CASE WHEN u.FMCI_IND = 'Y' THEN 'Yes-fMCI' ELSE 'No-fMCI' END;
no row selected.
Edited by: ROY123 on Jul 23, 2010 12:17 PMfixed.
-
Detailed and Summary reports in the same rdf
Hi,
I am using reports 9i
The problem
I wish to create three reports (one in each section) from the same sql statement
1) A detailed report
2) A summary by Country.
3) A summary by Currency
The SQL pulls in the data at the detailed level , report (1), no problems here
The SQL return two attributes Country and Currency which I want to group the totals to make reports (2) and (3). I use repeating frames to handle the different Countries and Currencies.
Question
How should I structure the Data Model to easily build the reports above. I have successfully created the Country summary, report (2) by creating a Group which includes summary columns breaking on the Country attribute. All going well so far.
I attempted to create an additional group with summary columns breaking on currency however, when I ran my report this report was breaking on Country and Currency.
The data model currently looks like
Query ---> G_CURRENCY --> G_COUNTRY --> G_DETAIL
Perhaps the issue is not with the data model, but something I am doing in the in the Paper Layout?
Any help gratefully appreciated.I don't think you can do that with only one SQL in the data model though.
If I were to do that report, I will have to options .
OPTION 1
1.) Create 2 SQL in the data model. One SQL will be for the Detail report and either one of the summary (e.g. Currency and Detail ). The other SQL will be for the remaining summary report ( e.g. Country) .
Then in your paper layout, you just add 3 different groups/repeating frame - one for each group in the data model. Each frame is independent of each other
2.) The other option is to use aggregates in your SQL. You may use CUBE which is an extension of the GROUP BY clause. Your SQL would look something like
SELECT COUNTRY, CURRENCY, SUM (col1), COUNT(col2)
FROM table1, table2
WHERE <conditions>
GROUP BY CUBE (COUNTRY, CURRENCY).
The records returned by this SQL will include the total for the country and currency, as well as the grand total for all the records. You should try this to see what records it will return or look into the Oracle 9i DataWarehousing guide document for more details.
In your paper layout, you will again have three groups/repeating frame independent of each other. But you have to control which records are to be printed by checking the values of the group columns.
I hope this helps. -
Navigating from Summary Report to Detail Report in OBIEE 11g
Hi,
I have creted two reports.One corresponds to Summary and the other Detail.By clicking on one of the fields in
the Summary report the values are captured and then the detail report is displayed based on the values selected.
Now,What I need to know is whether I can populate the values I have selected in Summary Report(values correspond to only a single field) as some text in the Detail report.
I am using 11.1.5 just in case you need to know,but any help would be greatly appreciated.
Regards
Navin.Ganother way if you want to stay in one document and continue to use drilling is to build 2 blocks and hide/unhide as you drill
block1 - shows your totals
block2 - shows the details
then use block hiding (see below) to cause block1 to disappear when you drill past a certain level. using the same (but opposite logic) you would have block2 appear
block hiding in webi - how to:
sadly webi doesnt have this feature directly the way that Crystal does but you can emulate it using SHOW WHEN EMPTY,block filtering and DrilFilters. The latter detects your level of drill.
block1 filter formula - return a TRUE result when DrillFilters tell you that you havent drilled into detail yet. Set SHOW WHEN EMPTY=No
when you do drill Block1's formula will be FALSE, the block will then technically be EMPTY and therefor wont show
Block2's filter logic will return FALSE when DrillFilters tells you that you are still on Block1's level of drilling. But when you drill Block2's level of drill, DrillFilters in Block2's filter formula will return TRUE and its rows will be returned. It wont be empty so it will show. -
Create a report same as KSB1 and add WBS line item details in the output
Hello Everyone,
I need to create a report exactly like KSB1 which should have a selection screen exactly like KSB1 but it should also display the WBS line item details from CJI3.
What is the right way of doing it? Please advice.
COEP is pretty huge in Production, and we need to fetch data by a specific date in selection screen or a cost center group. This can take a long time to fetch data from the table based on selection screen input. Are there function modules or do we need to use some other tables to fetch data same as COEP?
Thanks for all your help.
Regards,
Shipra.
Moderator message - Cross post locked
Edited by: Rob Burbank on May 28, 2009 10:54 AMHai ,
Please go throuth the note 325546 , u need to implement the customer exit COOMEP01 .
regards,
K.Vinay kumar -
Create a report same as KSB1 and add WBS line item details from CJI3
Hello Everyone,
I need to create a report exactly like KSB1 which should have a selection screen exactly like KSB1 but it should also display the WBS line item details from CJI3.
What is the right way of doing it? Please advice.
COEP is pretty huge in Production, and we need to fetch data by a specific date in selection screen or a cost center group. This can take a long time to fetch data from the table based on selection screen input. Are there function modules or do we need to use some other tables to fetch data same as COEP?
Thanks for all your help.
Regards,
Shipra.Hai ,
Please go throuth the note 325546 , u need to implement the customer exit COOMEP01 .
regards,
K.Vinay kumar -
Where do I start in order to create a summary report for a questionnaire?
I am creating a summary report for an internal questionnaire took by branches of a company.
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
The two tables in use are:
SQL> describe answers;
Name Null? Type
ID NOT NULL NUMBER(38)
QUESTION_ID NOT NULL NUMBER(38)
LABEL NOT NULL VARCHAR2(150)
The 'answers' table contains the answers for each question.
SQL> describe user_answer;
Name Null? Type
ID NOT NULL NUMBER(38)
USER_ID NOT NULL NUMBER(38)
ANSWER_ID NUMBER(38)
ANSWERED_QUESTION_ID NUMBER(38)
DATE_ANSWERED DATE
The 'user_answer' table contains the selected answer(s), from the 'answers' table, by the user.
There are 150 questions total in the questionnaire made up of either single or mulitple choice questions. As a sample, the first three questions look similar to:
Q.1 Do you use BIS or BES? Yes[] No[]
Q.2 What is your favorite phone shell colors? Green{} Red{} Black{} Silver{}
Q.3 Do you plan to purchase a new phone today? Yes{} No{} Unknown{}
I need to find the total for each possible answer for all the users. For example, I have four individuals who take the questionnaire.
Alpha answers the first three questions as:
Q.1 - Yes
Q.2 - Green, Red
Q.3 - Unknown
Bravo answers the first three questions as:
Q.1 - Yes
Q.2 - Green, Red, Black
Q.3 - Yes
Charlie answers the first three questions as:
Q.1 - No
Q.2 - Green, Black
Q.3 - No
Delta answers the first three questions as:
Q.1 - No
Q.2 - Green, Red
Q.3 - No
Using the two tables above, I need to produce the following summary.
Q.1 Yes - 2, No - 2
Q.2 Green - 4, Red - 3, Black - 2, Silver - 0
Q.3 Yes - 1, No - 2, Unknown - 1
Reading through chapter 9 SQL Queries and Subqueries at http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries.htm#i2068094, I'm not for sure if this is the right place to start? I'm testing with the GROUP BY and ORDER BY statements with not a lot of luck here either.
Any suggestions on how to get started or possible examples would be greatly appreciated.
Thank you.Thank you.
I will be sure to include the CREATE TABLE and INSERT statements in the future.
Your example is appreciated and I've came up with the following solution for the report:
WITH summary_results
AS ( SELECT answered_question_id, answer_id, COUNT ( * ) AS cnt
FROM user_answer
WHERE user_id = 43798
OR user_id = 2371
OR user_id = 1731
OR user_id = 19935
GROUP BY answered_question_id, answer_id
ORDER BY answered_question_id, cnt DESC)
SELECT sr.answered_question_id, sr.answer_id, sr.cnt, a.label
FROM summary_results sr, answers a
WHERE sr.answer_id = a.id; -
Web Applet Report that creates email for Opportunity Details
Hi,
I'm trying to create a report that creates an opportunity detail report. My Web applet works. The only issue is the HTML tags show up in the email, instead of formatting the narrative fields.
Any input is appreciated.
Regards,
Jo AnnWere you able to at least insert column values into the email (subject line, body)? I've got this to work in the Custom Text Format field of a user's email column:
@[html]<**a href="mailto:"@"?subject=Good%20Morning">@<**/a>
(Ignore the asterisks)
It does popup a blank email with the user's email in the To: line but what I want to do is pull in other column values from the record into the subject line and body of the email. How do I do that?
Edited by: user729346 on Apr 11, 2011 8:53 AM
Edited by: user729346 on Apr 11, 2011 8:54 AM
Edited by: user729346 on Apr 11, 2011 8:55 AM -
Need More details on ACE Job Summary Report (.ajs)
We are running ACE 8.00c.05. I have questions regarding the DPV Summary section of the .ajs report. My predecessor was using the data values to report out an overall DPV rate of our mailing. I would to make sure that we are working on the correct set of addresses that will have maximum effect on the DPV rate. My questions to that end are:
1. Where can I get more information on the columns and thier meanings?
2. How can I identify the 105 records that are listed as "Total Not Confirmed."
Any and all help is appreciated!
Below is the DPV section of the ACE Job Summary Report.
Delivery Point Validation Summary (DPV)
No Stats Processed: Y
Vacant Processed: Y
CMRA DPV DPV
DPV Status Code Count Confirmed No Stat Vacant
Primary/Secondary Confirmed (Y) 91334 34 477 1226
Secondary Not Confirmed (S) 475 17 9 11
Secondary Missing (D) 218 0 2 0
Total: 92027 51 488 1237
Total Not Confirmed: 105Hello Paul,
Information about the Job Summary Report as well as all the other reports can be found in the ACE documentation which should have accompanied your ACE product during the installation. However, if you cannot locate the documentation for whatever reason, additional copies of the documentation can be downloaded from http://help.sap.com.
There are a few different ways to identify records which are tagged as not DPV confirmed records. The easiest way is to post the ap.dpv_status field in your ACE job. This will tell you straight away if the record is DPV confirmed it will post a "Y" and if it is not will post "N".
If you would like further information about what I have described above in more detail, please open a support incident within Service Marketplace and ensure you use the component EIM-COR and an engineer will be happy to assist you in more detail regarding any further questions you have on this subject. Additionally, when you open an incident, you will have an opportunity to search our extensive knowledge base which may answer many of the questions you have on this subject.
I hope this information is helpful to you Paul! Have a wonderful day!
Best Regards,
Ken Burkhamer
Support Engineer u2013 EIM / Postalsoft
AGS Primary Support
SDN WIKI/Forum Active Contributor: http://wiki.sdn.sap.com/wiki/x/fwxXDw
http://forums.sdn.sap.com/forum.jspa?forumID=479
Maybe you are looking for
-
Is it possible for a G4 to use optical drive of another mac over a network
Well, is it? For some reason the optical drive on my G4 won't read certain CD's that are read by other Macs I have, but I can't see those drives over my network?
-
Enqueue/Dequeue - Locking/Unlocking object
Hi all, Please help me working with this enqueue/dequeue command. What I'm trying to do is to lock a Service Order. My requirement is to do a BDC for the Service Order Settlement Rule. So after hitting SAVE, a secondary process will be kicked off to
-
Font of time on locked screen is way too thin (iOS 7)
i'm new here, dont know if apple is reading complaints here, so just in case... the font, especially for the clock/time is way too thin. really makes my eyes follow that thin thread, to grasp the whole digit. It's ridiculous, cant believe Apple doesn
-
White backgrounds around swf's
I'm having some trouble with a site once I've uploaded it to the server. All my flash swf's have white backgrounds around them although I have specified a background colour of #2D44C8 to blend them into the site. I can not seem to get rid of the whit
-
for some reason this ipad 3 will not connect to the bt hub, it keeps searching for the connection and says internet is not available. when i know it is