Order by summary column
Can i order a report using a summary column?
Hi Chew,
You can order by a formula column, not a summary column. It is pretty easy to create a formula column to do the same thing as your summary column.
However, you can only set the order of the master group with the formula column, not the detail group. To set the order of a master group with a formula column, you need to set the break order to Asc or Desc. See Builder help on "Break Order" property for more details.
Navneet.
Similar Messages
-
Hi all
I have a summary coplumn on my report it was multiple
i want it to be order by
Thanks And Regards
Vikas SinghalHI i
what i did
empcode--------------------working_hours--------------TOTALPAY
101--------------------------------12---------------------------400 GBP
101--------------------------------10---------------------------500 USD
I put a summary coloum here=22
102--------------------------------15---------------------------400 GBP
102--------------------------------12---------------------------400 USD
102--------------------------------13---------------------------400 EURO
-------------------------------------40
103--------------------------------12---------------------------400 GBP
103--------------------------------30---------------------------500 USD
I put a summary coloum here=42
104--------------------------------20---------------------------400 GBP
104--------------------------------12---------------------------400 USD
104--------------------------------13---------------------------400 EURO
-------------------------------------45
Then, i need to order by summary column,
DESIRED OUTPUT NEEDED IS
empcode--------------------working_hours--------------TOTALPAY
104--------------------------------20---------------------------400 GBP
104--------------------------------12---------------------------400 USD
104--------------------------------13---------------------------400 EURO
I put a summary coloum here=45
103--------------------------------12---------------------------400 GBP
103--------------------------------30---------------------------500 USD
-------------------------------------42
102--------------------------------15---------------------------400 GBP
102--------------------------------12---------------------------400 USD
102--------------------------------13---------------------------400 EURO
-------------------------------------40
101--------------------------------12---------------------------400 GBP
101--------------------------------10---------------------------500 USD
--------------------------------------22
Desired result is given above but how it will come please guide me hihest order in TOP after that lesss then that
and so on
Thanks And Regards
Vikas Singhal -
Can I reference a Summary Column in my sql query?
Basically the subject asks it all. I have a very complex report that has many data linked queries from the "main" query. One of these data linked queries has a sub-query within it that references the primary key of the main query. I can't data link (I can, but it's useless) using this field as it's a sub-query that needs the link, and that link specifically. I've tried to create a Summary Column that gives me the "First" (and only, so it's safe) in order to reference it in the SQL block, but no go. I'm thinking this isn't even possible? Anyone have any ideas? Right now I'm referencing it as I would in a PL/SQL block (:CS_PK), but it's just treated as a parameter that's never passed. Doesn't read the summary column. Hmmm... I'm stuck.
Hi all... this report is still not completed. I've tried the summary column, and created a formula column that sets the user parameter to the primary key that's needed elsewhere. The report runs, no errors, but my best guess is that it's simply not reading that formula column. Here's my formula column:
function CF_1FORMULA0024 return Number is
begin
if :tblassessmentinst is null then
:tblassessmentinst := :CA_ASSESS_INST;
elsif :tblassessmentinst is NOT null then
:tblassessmentinst := :CA_ASSESS_INST; -- this WAS :tblassessmentinst but not working with prod ver, so delay
else
:tblassessmentinst :=0;
end if;
return(:tblassessmentinst);
end;
For testing, I display both the :tblassessmentinst on the report, as well as this formula column. The formula column always displays the correct number, but the :tblassessment only displays 1 (of many) records that need to be displayed. It's like it's not refreshing the formula column for each record? Again, still super stumped, so throw any ideas my way please.
Thanks again,
TL -
Sorting by summary column, query based on previous query.
Using 10g reports.
I've got a report with one query currently thats broken down itno a couple groups. I'm trying to change the order they are displyed by based on a summary count of each group. I'm also trying to do another query for the report based on the results of the first one and display that with the information from the first.
The report currently:
Chain name
ABC Stores
Month
JUN
Store Name Store ID bad sales
Store1 storeid1 5
Store2 storeid2 3
Store3 storeid3 1
month total: 9
JUL
Store1 storeid1 6
Store2 storeid2 5
Store3 storeid3 2
month total:13
Chain total 22
XYZ Stores
JUN
Store1 storedid1 20
Store2 storedid2 15
month total 35
JUL
Store1 storedid1 11
Store2 storedid2 7
month total 18
Chain total 53What I want to do is sort the order the store chains appear in based on the CHain total of bad sales. This is a summary done by the report and not in the sql query at the moment. I would also like to create a second query where it takes the store id and month from the first query and uses it to look up the total sales each store did so I can determine what percentage of the total sales the bad sales were. I would like to add this column plus a calculated percentage column to the right of the current columns but still have them grouped as they are. Is this possible to do or will i need to change my original query?
Not very familiar with reports and I haven't been able to find anything to indicate how this should/could be done yet. Any help is appreciated.hi,
there is no break order property for summary columns .
so use the group by and take the sorting order for whole group
example:
SELECT DEPTNO, JOB, ENAME, SAL FROM EMP
ORDER BY SAL
You then create two groups, G_DEPT and G_JOB. G_DEPT contains
the DEPTNO column and G_JOB contains the JOB column. If you
specify a Break Order of Descending for the DEPTNO column and
Ascending for the JOB column, your output would appear similar
to that below (assuming you use a Tabular style):
Deptno Job Ename Sal
30 CLERK JAMES 950.00
MANAGER BLAKE 2850.00
SALESMAN WARD 1250.00
MARTIN 1250.00
TURNER 1500.00
ALLEN 1600.00
20 ANALYST SCOTT 3000.00
FORD 3000.00
CLERK SMITH 800.00
ADAMS 1100.00
MANAGER JONES 2975.00
10 CLERK MILLER 1300.00
MANAGER CLARK 2450.00
PRESIDENT KING 5000.00 -
Change Labels on Summary Columns
Could anyone advice me how to change labels on the summary columns on a cross tab report?
Current it shows for e.g. count(orders).
I would like to change it to "Order Count"
Also how can i change the value format on a drill down report?Hi,
Thanks a lot for your answers.
First, on umResetPasswordPage.jsp I have found the code where "LAST_NAME" must take a value from other file (Could be from umelogonbase.jar?) so, maybe it is not the right place to change it, isn't it? or did you suggest by other way?? This is the code on the umResetPasswordPage.jsp file:
<td width="161" height="20">
<label class=urLblStd for="logonlastnamefield">
<%=logonLocale.get("LAST_NAME")%>
<span class=urLblReq> *</span>
</label>
</td>
Second, On Portal Content there is not any Page/Iview wich manage this Support (LogonHelpApp) page openned by "get Support" link on Welcome Portal Page. At this time, I could not find if is it a webdynpro or other component Portal.... -
Summary Column and repeating frames
I have a report that shows customer orders(1 per page). If a customer orders 3 pizzas and 2 of them are identical, same size, same toppings, crust i want the quanitity column to sum as 2. So for this example instead of having 3 rows with two of them being identical with the quanity column dispalying 1 for each, I want 2 rows with quanity showing 2 for the identical pizzas and 1 for the other.
I have everything in the same group/repeating frame right now and it is showing all 3 pizzas on there own row. Do i need a summary column and change my groupings? How can i achieve this the summed quanity for identical orders?
CURRENT:
Crust......Toppings......size.....quantity
Thin.......Cheese........small....1
Thin.......Cheese........small....1
thick.......meat.........large....1
NEW:
Crust......Toppings......size.....quantity
Thin.......Cheese........small....2
thick.......meat.........large....1Forget summary columns. This can easily be just a group by query:
with t as (select 'Thin' crust, 'Cheese' top ,'Small' sze, 1 qty from dual
union all
select 'Thin' , 'Cheese' ,'Small' , 2 from dual
union all
select 'Thick' , 'Meat' ,'Large', 1 from dual
select t.crust, t.top, t.sze, sum(qty)
from t
group by crust,top,sze;
CRUST TOP SZE SUM(QTY)
Thin Cheese Small 3
Thick Meat Large 1 -
How do I sort my report based on a summary column I have created?
hi,
there is no break order property for summary columns .
so use the group by and take the sorting order for whole group
example:
SELECT DEPTNO, JOB, ENAME, SAL FROM EMP
ORDER BY SAL
You then create two groups, G_DEPT and G_JOB. G_DEPT contains
the DEPTNO column and G_JOB contains the JOB column. If you
specify a Break Order of Descending for the DEPTNO column and
Ascending for the JOB column, your output would appear similar
to that below (assuming you use a Tabular style):
Deptno Job Ename Sal
30 CLERK JAMES 950.00
MANAGER BLAKE 2850.00
SALESMAN WARD 1250.00
MARTIN 1250.00
TURNER 1500.00
ALLEN 1600.00
20 ANALYST SCOTT 3000.00
FORD 3000.00
CLERK SMITH 800.00
ADAMS 1100.00
MANAGER JONES 2975.00
10 CLERK MILLER 1300.00
MANAGER CLARK 2450.00
PRESIDENT KING 5000.00 -
Matrix report data with summary column in excel format
Hi ,
I want to display output of matrix report with summary column in excel format.
I have tried using spreadsheet but column header and actual data is displaying in proper order.
Please tell me the way how to do this ASAP.
Thanks in advance.Hi ,
I want to display output of matrix report with summary column in excel format.
I have tried using spreadsheet but column header and actual data is displaying in proper order.
Please tell me the way how to do this ASAP.
Thanks in advance. -
Summary column after each group
Hello,
I have programmed a sql statement which gives me the following data.
no id name year a b s_a s_b
1 700 Mrs. Smith 2012 36 7 101 13
1 700 Mrs. Smith 2012 21 2 101 13
1 700 Mrs. Smith 2012 27 2 101 13
1 700 Mrs. Smith 2012 17 2 101 13
2 163 Mr. Heck 2012 80 12 170 17
2 163 Mr. Heck 2012 90 5 170 17
3 515 Mrs. Peter 2012 40 0 40 0 It is possible to get the summary columns s_a und s_b after each id-group?
no id name year a b
1 700 Mrs. Smith 2012 36 7
1 700 Mrs. Smith 2012 21 2
1 700 Mrs. Smith 2012 27 2
1 700 Mrs. Smith 2012 17 2
101 13
2 163 Mr. Heck 2012 80 12
2 163 Mr. Heck 2012 90 5
170 17
3 515 Mrs. Peter 2012 40 0
40 0Does anybody have an idea?Or
with t
as
select 1 no, 700 id, 'Mrs. Smith' name, 2012 year, 36 a, 7 b, 101 s_a, 13 s_b from dual union all
select 1 no, 700 id, 'Mrs. Smith' name, 2012 year, 21 a, 2 b, 101 s_a, 13 s_b from dual union all
select 1 no, 700 id, 'Mrs. Smith' name, 2012 year, 27 a, 2 b, 101 s_a, 13 s_b from dual union all
select 1 no, 700 id, 'Mrs. Smith' name, 2012 year, 17 a, 2 b, 101 s_a, 13 s_b from dual union all
select 2 no, 163 id, 'Mr. Heck' name, 2012 year, 80 a, 1 b, 170 s_a, 17 s_b from dual union all
select 2 no, 163 id, 'Mr. Heck' name, 2012 year, 90 a, 5 b, 170 s_a, 13 s_b from dual union all
select 3 no, 515 id, 'Mrs. Peter' name, 2012 year, 40 a, 0 b, 40 s_a, 0 s_b from dual
select no,id,name,year,sum(a) a,sum(b) b
from
select t.*,row_number() over(partition by no,id order by a) rn
from t
group by no,id,rollup(name,year,rn)
having (
GROUPING(name),GROUPING(year),GROUPING(rn)
) in
(1,1,1),
(0,0,0)
NO ID NAME YEAR A B
1 700 Mrs. Smith 2012 17 2
1 700 Mrs. Smith 2012 21 2
1 700 Mrs. Smith 2012 27 2
1 700 Mrs. Smith 2012 36 7
1 700 101 13
2 163 Mr. Heck 2012 80 1
2 163 Mr. Heck 2012 90 5
2 163 170 6
3 515 Mrs. Peter 2012 40 0
3 515 40 0
10 rows selectedEdited by: jeneesh on Jan 23, 2013 3:25 PM
Simplified.. -
Restaurant Menu and Order Cart Summary
Dear Users,
I am building an on line ordering tool for a pizza
restaurant. I want to take advantage of the restaurant’s
already beautiful menu.. I scanned the menu as a jpg about 1 Mb..I
can tolerate my end users (pizza eaters) having to download the
menu once... I overlayed the menu with hot spots on each item that
the end user can click on to populate their order cart summary
which is located on a separate page
I want my users to bounce back and forth between the order
summary page and the menu...... this bouncing back and forth will
be a problem is the menu is actually a large jpeg (as mine is ) if
it has to download each time..
I don't want to use frames because it will destroy the style
I am looking for...
So my questions are
How can I design my website so my end users only have to
download the fat menu once despite bouncing back and forth between
the order summary cart and the menu...
When they click on the menu should it load in a new window
that remains open but still linked to my order summary?
Finally is there a way to make the menu load in the
background as soon as the customer comes to the site so when they
finally click on the link to the menu it be there realy fast?
Thank you in advance for your time
Sincerely
Terrence Donohoe.oO(dongbongchong)
> I am building an on line ordering tool for a pizza
restaurant. I want to take
>advantage of the restaurant?s already beautiful menu.. I
scanned the menu as a
>jpg about 1 Mb..I can tolerate my end users (pizza
eaters) having to download
>the menu once...
Your users won't tolerate it. Modem users will have died of
starvation
before the download is complete. Even ISDN users will have a
hard time
and probably head for the next McDonald's. After coming back
they might
order a salad, though ...
Seriously - first you should drop the idea of just taking a
print work
and putting it as-is on the Web - that's not going to work.
Both medias
are completely different and require different methods of
doing things.
Some estimated download times for your 1MB monster:
Modem: >4 minutes
ISDN: 2.4 minutes (still >1 minute with two B-channels)
Your target time is 10 seconds(!) to have something usable on
the user's
screen. After that it becomes very likely that the user will
move away.
First you should think about how to structure the HTML,
forget the
presentation for the moment. A two-column layout, some
headings, some
lists, some links to other sections, an order form. Nothing
special.
Then you can think about the presentation. Giving the site a
look like
page 3 of your menu PDF for example is doable with CSS. Some
background
images, some cleverly cut border images, maybe PNG alpha
transparency
effects (requires a workaround in IE <7).
Adding something like "Los Wingos" is possible as well
without using too
many images and blowing up the page size.
High-quality full-page background images like photographs and
collages
usually don't work well. In some case they _could_ work if
the quality,
color brilliance and sharpness is reduced intentionally. Such
images can
be stored with just some 10KB instead of >100KB.
Try to reuse as much images as possible to save download
time, don't use
completely new images on every page like it's currently in
the printed
version.
This were just some general hints.
After all if you really want to make it a usable website and
not just a
printed flyer then you have a lot of work to do. Mainly
graphical, the
HTML will be rather simple.
Micha -
Summary Column inside the Cross Product
Hai All,
I have developed a matrix report in the RDF format. There is a summary column inside the cross product. When I create the generate XML from the RDF the summary column from cross product is not apppering in the generate XML file. How can we accomplish that summary column inside the RDF.
Thanks in Advancehttp://winrichman.blogspot.com/search/label/BIP%20Vertical%20sum
http://winrichman.blogspot.com/search/label/Cross-tab
these links should help , you , if not, send me the xml and template and desired output. -
How to get summary columns in delimited text file
How to get summary columns in delimited text file
I am trying to generate a delimited text file output with delimited_hdr = no.The report is a Group above report with summary columns at the bottom.In the text file the headers are not getting repeated & thats ok.The problem is the summary data is getting repeated for each row of data.Is there a way where i will get all the data & summary data will get displayed only once.I have to import the delimited text file in excel spreadsheet.Sorry there were a typos :
When I used desformat=DELIMITEDDATA with desttype=FILE, I get error "unknown printer driver DELIMITEDDATA". When you look for help, DELIMITED is not even listed as one of the values for DESTFORMAT. But if you scroll down and look for DELIMITER it says , this works only in conjuction with DESTFORMAT=DELIMITED !!!!!!??!! This is in 9i.
Has this thing worked for anybody ? Can anyone please tell if they were able to suppress the sumary columns or the parent columns of a master-detail data for that matter ? -
: HIDING SUMMARY COLUMNS IN MATRIX REPORT , URGENT
Hi,
Can any one please tell me how to hide a column in oralce matrix report. Its a summary column for the matrix report which appears next to the cell values. For example
Manufacturer
Brand
SubBrand1 SubBrand2 Brand Total Manufacturer Total
Week $ Sales $ Sales Total $ Sales Total $ Sales
This is a case where,the cell value is the $ sales for the SubBrand for the week. And it gets total at each brand level and each Manufacturer level. The requrement is if there is only one SubBrand for a Brand then the Brand total should not appear on the report. Similarly if there is one Brand for a Manufacturer, then the total at Manufacturer level should not appear . The point is not only it should dissapear but the frame should srink to make it fell that there is no totaling going on at those two levels. If the fileds just remains blank then the report looks odd. So the gap should be srinked as well. How to do it . This is very urgent . Please help me out.
Thanks
Ferozuse a formst trigeer on the field that returns false when you don't want to display the field.
-
Order Source Reference Column in Sales Order Form
Hi All,
When copying a sales order that is imported from EDI, the order source reference column in the new order refers to the original order. Is there a way to make this field refer to the same field of the original order? Or at least make it editable/updatable?
Thanks
A/HNot sure personalization will solve this problem. Other options:
1. Workflow
2. Post Hook Events
3. trigger?
Thanks
Nagamohan -
Problem with the order of the columns of a ALV
I have a problem with a ALV, variants we keep this ALV does not record the order of the columns
Thank youI suppose you want to change the sequence of columns of a ALV. If you can change it by clicking 'settings' of right-top corner of ALV. After done you can save the new settings into a new. If you find some abnormal behaviour, please check the settings by WDA component "wd_analyze_config_user".
FYI.
[http://help.sap.com/saphelp_nw70/helpdata/en/32/f26f73d81e11d1a26f0000e8a5a614/frameset.htm]
Maybe you are looking for
-
Hai, In the transaction MC$4-Vendor analysis. After executing the report, I need it transfer to XXL (choose the characteristics, I selected vendor),all data transfered to excel except Vendor It is like that, Vendor PO value GR value
-
What can I do to get windows back . I get a prompt to put in a installation disk. Can I get it to work without one. If not how can I get one Please Reply
-
Images and titles are not showing up
I took a screen shot of it, but when I load tumblr and reddit specifically, but there are other pages, smaller images and title do not show up. I tried the trouble shooting, and the reset, and looked at extensions. Nothing worked, I still have the pr
-
Javascript is not called in jsp page
Hi, I have jsp page which actually redirect to another jsp page.... I need to run some javascript code before redirecting to another page But it seems script got skipped & it goes to desired page code snippet: <%@ taglib uri="/ABCTaglib" prefix="AA"
-
OS/ Version: Solaris / 5.8 Software: SAN 4.4.8 (SAN Foundation Kit) I installed the SAN 4.4.8 Foundation kit to implement STMS in order to have a dual path to both an A5200 as well as thru the SAN to a Hitachi 9500V storage subsystem. After the insta