Problem in creating group above AND group left in one report!

Hi all,
I need a report that is a combination of group above and group
left.
Suppose I have 3 table (Emp, Sales, Product):
Emp Table has 2 column
- Emp_PK
- Emp_Name
Sales Table has 4 column
-Sales_PK
-Sales_Date
-Emp_FK
-Produck_FK
-Quantity
Product Table has 3 column
-Product_PK
-Product_Name
-Product_Price
I want to make Employee Sales Report For The Month that will
look like this:
Emp Number___: Emp_PK
Emp Name_____: Emp_Name
Sales Date______Product_Name____Quantity \(2 sales
________________Product_Name____Quantity /the date)
Sales_Date______Product_Name____Quantity
As you can see this consist of group above (The Employee) and
group left (The Sales and Product).
I create this by using 2 queries and link them (the Emp_PK from
1st query and Emp_FK from 2nd query) on the report builder using
data link.
The first query is:
Select Emp_PK, Emp_Name from Emp
The second query is
Select Emp_FK, Sales_Date, Product_Name, Quantity
From Sales, Product
Where Product_PK=PRODUCT_FK
I then create the layout for second query and choose group left
for Sales_Date using wizard and I create additional layout to
for the employee.
The problem is that when I run this report, it will print ALL
the employee record first (including employee who has NOT sale
anything) and then on the last page it will print the record of
Last employee on the Emp table and ALL sales record (including
those that is done by other employee).
This report will run correctly if I choose an exact employee
(For example by adding Where Emp_PK=1111 in the first query) to
report all of the sales done by this person (employee with emp
number of 1111). However I need the report to run and print
ONLY those employee who has Sales Records!
I thought that by linking the 2 queries in Data Model, it will
have the same effect as linking using the WHERE clause in query.
If suppose I create a query like this:
SELECT Emp_PK, Emp_Name, Sales_Date, Product_Name, Quantity
FROM Emp, Sales, Product
WHERE Emp_PK=Emp_FK AND Product_PK=Product_FK
The report will run OK but I can only choose EITHER group above
or group left for this ONE query methods in report Wizard.
Sorry if it is a long question but I hope you can see what I am
trying to do.
Thanks in advance for any tip.

hello,
of course you can create group left and group above blocks in a
single report.
you might want to use the INSERT REPORT BLOCK instead of the
report wizard, as the report wizard only allows you to use one
report layout per report, where the report block wizard (invoked
by INSERT REPORT BLOCK) allows you to choose on a per-block
basis.
of course you can create the blocks completely from scarth by
hand, if you want to.
regards,
the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Group above and left classic reports

    how can i group above and left in an existing classic reports? is there any document around here please share it to me.

    >
    Please update your forum profile with a real handle instead of "user13653962".
    how can i group above and left in an existing classic reports? What does "group above and left" mean? A demonstration layout on apex.oracle.com or here (using tags<tt>\...\</tt> tags to preserve formatting) would be helpful.
    The options for break formatting on classic reports are:
    <li>The basic built-in control break features.
    <li>Simple DIY break layout on any number of columns using analytics in the source query: +{message:id=10679160}+
    <li>Complex report layout with multi-level headings using analytics in the source query and a custom named column report template with conditional row templates: +{message:id=9816577}+
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.

  • SharePoint tool to create External Users and Groups

    Our organization is currently looking for a product that will allow us to create user account and group for users outside the organization (e.g Clients, subcontractors, etc.) and that will only need to access to our external SharePoint Collaboration site.
    We have one product right now but it is very problematic. For example if one of our clients need to change their email address which is their username it won't allow it so the account has to be re-created with the new email address and the permissions re-configured
    all over again. The groups created using the tool called Roles most of the times don't work. We are testing our SharePoint 2013 environment so we thought it is a good time to find something new. If you know of some products that I can check please let
    me know. I will really appreciate it

    Hi,
    According to your post, my understanding is that you wanted to create user account and group for users outside the organization.
    External User Management seems to be a solution. It allows for easy management of external users and roles.
    More information:
    http://ventigrate.codeplex.com/wikipage?title=External%20User%20Management
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Creating OAAM users and groups in external LDAP i.e. OID

    Hi Experts,
    I am looking for the procedure to create OAAM users and groups in external LDAP i.e. OID.
    I am using 11gR2.
    Any pointers would be appreciated.
    Regards,
    Subin

    Check this link http://docs.oracle.com/cd/E27559_01/dev.1112/e27206/lcm.htm#autoId3

  • How to create windows users and groups from Java

    Hi,
    Can any one please tell me, which Package/API will helps to create windows users and groups from Java.
    Thanks,
    M.Prem.

    You can't do it with pure Java, and it's not in the core API. You'd have to write a native function to do it, using whatever API Windows provides, and then call it with JNI. Or look for a third party native-based Java library that already does that.

  • I created in iMovie, and extracted audio from one of the clips to use in the title sequence.  All is well, export to iDVD and it plays OK, but when I burn the DVD the audio for the titles does not play. Any suggestions?

    I created in iMovie, and extracted audio from one of the clips to use in the title sequence.  All is well, export to iDVD and it plays OK, but when I burn the DVD the audio for the titles does not play. Any suggestions?

    I am on a MacBook Pro with OS 10.6.7 running iMovie '11 and iDVD 7.1.1.  Thanks for any input.

  • Create a test and development environment : only one CMS running

    Hi,
    Can anyone tell me how to create a test and Develpment environment for one CMS?
    I'm running BO XI 3.1 enterprise edition.
    Thanks
    Peter

    If you only have one server, you'll need to create an extra folder. Use security to stop non-test/dev users seeing the content. Then publish to it.
    Once tested, move reports to 'proper' folders.

  • Getting Reason Code, Condition Type, and Condition Value in one report

    Hello there,
    I have got a Question for you all BW Gurus. I need the answer for this as soon as possible. I will assign points to all helpful answers.
    I am having a Sales cube, Delivery Cube, and a Conditions Cube which I built. Each cube is populated from different ODS. Means there are 3 ODS for 3 cubes. I am joining these 3 cubes under a Multiprovider.
    My Question is:
    We are using Reason Codes at Delivery level. We have identified an empty field in the delivery tables and populating this field with the reason codes. We have condition type and condition value only in the Condition cube. One of the reporting requirements is that we need to see Reason code, Condition Type, and Condition value in one report. I am planning to report on the Multiprovider. Since Reason code, Condition Type, and Condition value are not present in all the 3 cubes (means they are not common characteristics in the Multiprovider), I don’t think I can get those values in one report if I report on the Multiprovider. Please correct me if I am wrong. If what I say is correct, please tell me how to solve my problem. Once again, helpful answers will be greatly appreciated and rewarded with points.
    Thank you in advance.
    Kind Regards,
    Swathi

    Hello Swathi,
    Please do not post the same question on multiple forums.
    Thanks,

  • How to Create New Hierarchy and Group Codes

    Hi,
    I have a requirement for create New Hierarchy Code and Group Codes...
    Please let me know the procedure of it..
    Thanks...

    solved

  • MSOL Created AD Account and Group -

    I've recently installed Forefront Identity Manager 2010 R2 and we are in the process of creating a tenant connection to Office 365 and setting up Exchange Federation.
    I have installed FIM 2010 R2 and have setup DIRSYNC, and we've noticed an account and group were automatically created in the AD Domain USERS OU.
    MSOL_xxxxxxxxxxxxxx (user)
    MSOL_AD_Sync_Richcoexixtence (group) with the MSOL user the only member.
    2 questions:
    1). What is this User/Group used for? (as during the install I had to supply another AD Domain credential which I would have thought would have been used for the SYNC process.
    2). Can this MSOL user/group be pre-created or have the password modified in some fashon? (our Security folks want to "set" the password on the MSOL user to a known value?)?
    THANKS

    Hi,
    why do you install FIM when you install DirSync?
    DirSync installs the FIM 2010R2 Synchronization Service on it's own. In General Dirsync is FIM2010 Sync Engine with a frontend which makes the configuration of the FIM and some scary automatic things in the whole forest.
    Also Dirsync creates a service, which starts the runprofiles of the management agents.
    1a) The Group "MSOL_AD_Sync_Richcoexixtence" is created by dirsync and has been granted permissions in every domain in the forest (because of this dirsync wants enterprise admin rights) for the write-back attributes described in the article
    http://support.microsoft.com/kb/2256198/en-us.
    1b) The account "MSOL_<identifier>" is also created by dirsync and is added to the MSOL_AD_Sync... group. Also this account has been granted "Replicate Directory Changes" in every domain in your forest for the dirsync ldap control.
    1c) there is a third account which is created by dirsync..but this account is local and is named "AAD_<identifier>".
    2.) you can change the password. the account is used in the ad management agent. so you have to go in the FIM Synchronization Service Manager and change it.
    In big environments dirsync is crap...
    regards

  • Creating new user and group in BPEL PM.

    Hi,
    Please tell me how to cerate new user and groups in BPEL PM.
    I understand that BPEL PM uses jazn files to keep user information . I would like to know the steps to create new users and gourps in BPEL PM.
    Thanks

    Please refer this link http://download.oracle.com/docs/cd/E12483_01/integrate.1013/b28982/security.htm#CDDBJCHD and also you can create users/roles through EM (Enterprise Manager). Here even you can able to specify their roles.
    regards
    Rajesh A

  • Create worklist user and group's in 11G...

    How to create worklist user's and group's in standart 11G instalation...
    Thanks...

    hI Raj,
    It is very easy to create users,groups,roles in soa suite 11g manually .Just login to the weblogic console and you find a security realms tab click on that then next a page will open with my realms then click on it you will find a users and groups tab on top click on that then lock and edit the session and from there you can create users groups and also assign roles.You can also use external ldap if you want,Please let me know if this clarifies your doubt

  • Newbie  Group by and Group by

    I can do a group by, but I need to have TWO Group by so my output would look like this
    in ONE report:
    Month Hours
    Oct. 2008 10
    Nov. 2008 17
    Dec. 2008 14
    Total 41
    Produce Hours
    Apples 7
    Grapes 15
    Peaches 8
    Plums 11
    Total 41
    Below will give me the Produce total:
    Select Sum(Phours) Shours,Pname from aims.dummy
    group by Pname
    =========================
    Below will give it by Date:
    Select Sum(Phours) Shours,Pdate from aims.dummy
    group by Pdate
    =========================
    Here's my input example:
    drop table dummy;
    create table dummy(pname varchar2(20)
    ,Phours numeric(10,0)
    ,pdate date);
    insert into dummy(pname,phours,pdate)
    values('Apples',4,to_date('20081001','YYYYMMDD'));
    insert into dummy(pname,phours,pdate)
    values('Apples',3,to_date('20081101','YYYYMMDD'));
    insert into dummy(pname,phours,pdate)
    values('Grapes',3,to_date('20081001','YYYYMMDD'));
    insert into dummy(pname,phours,pdate)
    values('Grapes',12,to_date('20081201','YYYYMMDD'));
    insert into dummy(pname,phours,pdate)
    values('Peaches',3,to_date('20081001','YYYYMMDD'));
    insert into dummy(pname,phours,pdate)
    values('Peaches',5,to_date('20081101','YYYYMMDD'));
    insert into dummy(pname,phours,pdate)
    values('Plums',9,to_date('20081101','YYYYMMDD'));
    insert into dummy(pname,phours,pdate)
    values('Plums',2,to_date('20081201','YYYYMMDD'));
    What is the best way to do this?
    TIA
    Steve

    Like this...
    SQL> select * from dummy;
    PNAME                    PHOURS PDATE
    Apples                        4 01-OCT-08
    Apples                        3 01-NOV-08
    Grapes                        3 01-OCT-08
    Grapes                       12 01-DEC-08
    Peaches                       3 01-OCT-08
    Peaches                       5 01-NOV-08
    Plums                         9 01-NOV-08
    Plums                         2 01-DEC-08
    8 rows selected.
    SQL> break on type skip 1
    SQL> ed
    Wrote file afiedt.buf
      1  select 'By Month' as type, to_char(pdate,'Mon') as descript, sum(phours) as hrs
      2  from dummy
      3  group by to_char(pdate,'Mon')
      4  union all
      5  select 'By Produce', pname, sum(phours)
      6  from dummy
      7  group by pname
      8* order by 1,2
    SQL> /
    TYPE       DESCRIPT                    HRS
    By Month   Dec                          14
               Nov                          17
               Oct                          10
    By Produce Apples                        7
               Grapes                       15
               Peaches                       8
               Plums                        11
    7 rows selected.
    SQL>Of course you may want to change how the ordering is done so that the months come out in order for that group and the produce comes out alphabetically for the second group, but I'll leave that as a challenge for yourself. ;)

  • Problem with creating Connection pool and JNDI, driver is not detected

    Hi,
    I have an issue with creating Connection Pool and JNDI.
    I'm using:
    - JDK 1.6
    - OS: Linux(ubuntu 8.10)
    - Netbeans IDE 6.5.1
    - Java EE 5.0
    - Apache Tomcat 6.0.18 Its lib directory contains all necessary jar files for Oracle database driver
    - Oracle 11g Enterprise
    My problem is that the Oracle database driver is not detected when I want to create a pool (it works pretty well and is detected without any problem when I create ordinary connection by DriverManager)
    Therefore after running:
    InitialContext ic = new InitialContext();
    Context context = (Context)ic.lookup("java:comp/env");
    DataSource dataSource = (DataSource)context.lookup("jdbc/oracle11g");
    Connection connection = dataSource.getConnection();and right after dataSource.getConnection() I have the following exception:
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.OracleDriver'
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    at servlets.Servlet1.doPost(Servlet1.java:47)
    at servlets.Servlet1.doGet(Servlet1.java:29)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1130)
    ... 17 more
    My application context file (context.xml) is:
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/WebApplication3">
      <Resource auth="Container"
                      driverClassName="oracle.jdbc.OracleDriver"
                      maxActive="8"
                      maxIdle="4"
                      name="jdbc/oracle11g"
                      username="scott"
                      password="tiger"
                      type="javax.sql.DataSource"
                      url="jdbc:oracle:thin:@localhost:1521:database01" />
    </Context>and my web.xml is:
        <resource-ref>
            <description>Oracle Datasource example</description>
            <res-ref-name>jdbc/oracle11g</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
        </resource-ref>
    ...I found similar threads in different forums including sun, such as
    http://forums.sun.com/thread.jspa?threadID=567630&start=0&tstart=0
    http://forums.sun.com/thread.jspa?threadID=639243&tstart=0
    http://forums.sun.com/thread.jspa?threadID=5312178&tstart=0
    , but no solution.
    As many suggest, I also tried to put context directly in the server.xml (instead of my application context) and referencing it by <ResourceLink /> inside my application context but it didn't work and instead it gave me the following message:
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '   ' for connect URL 'null'
    Has anyone succeeded in creating a connection pool with JNDI by using Tomcat 6 or higher ? If yes, could kindly explain about the applied method.
    Regards,

    Hello again,
    Finally I managed to run my application also with Tomcat 6.0.18. There was only two lines that had to be modified
    in the context.xml file (the context of my application project and not server's)
    Instead of writing
    <Context antiJARLocking="true" path="/WebApplication2">
        type="javax.sql.DataSource"
        factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
    </Context>we had to write:
    <Context antiJARLocking="true" path="/WebApplication2">
        type="oracle.jdbc.pool.OracleDataSource"
        factory="oracle.jdbc.pool.OracleDataSourceFactory"
    </Context>- No modification was needed to be done at server level (niether server.xml nor server context.xml)
    - I just added the ojdbc6.jar in $CATALINA_HOME/lib (I didn't even need to add it in WEB-INF/lib of my project)
    - The servlet used to do the test was the same that I presented in my precedent post.
    For those who have encountered my problem and are interested in the format of the web.xml and context.xml
    with Tomcat 6.0, you can find them below:
    Oracle server: Oracle 11g Enterprise
    Tomcat server version: 6.0.18
    Oracle driver: ojdbc.jar
    IDE: Netbeans 6.5.1
    The context.xml file of the web application
    <?xml version="1.0" encoding="UTF-8"?>
    <Context antiJARLocking="true" path="/WebApplication2">
        <Resource name="jdbc/oracle11g"
                  type="oracle.jdbc.pool.OracleDataSource"
                  factory="oracle.jdbc.pool.OracleDataSourceFactory"
                  url="jdbc:oracle:thin:@localhost:1521:database01"
                  driverClassName="oracle.jdbc.OracleDriver"
                  userName="scott"
                  password="tiger"
                  auth="Container"
                  maxActive="100"
                  maxIdle="30"
                  maxWait="10000"
                  logAbandoned="true"
                  removeAbandoned="true"
                  removeAbandonedTimeout="60" />
    </Context>The web.xml of my web application
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <resource-ref>
            <description>Oracle Database 11g DataSource</description>
            <res-type>oracle.jdbc.pool.OracleDataSource</res-type>
            <res-auth>Container</res-auth>
            <res-ref-name>jdbc/oracle11g</res-ref-name>
        </resource-ref>
        <servlet>
            <servlet-name>Servlet1</servlet-name>
            <servlet-class>servlets.Servlet1</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Servlet1</servlet-name>
            <url-pattern>/Servlet1</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
            <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>
    </web-app>Ok, now I'm happy as the original problem is completely solved
    Regards

  • Login problems with create pdf,share and my files

    Hello ,
    When I currently go to www.acrobat.com on my windows xp
    computer and try to go to one of the create pdf,share and my files
    and click on begin I get a message saying sorry this service is
    temporary unavailable but when I click on learn more it says all
    service are up and runing. Does anyone know what is wrong and if
    the service is down when will it be fixed.?

    Hi Sue!
    This seems like a separate issue you're running into. It is
    good that you can get logged in, but odd that you're only seeing
    partial functionality in your user.
    How many files are missing? Is this affecting certain file
    types?
    Did you ever see files in your My Files section?
    How long have they been unavailable/missing?
    When uploaded, did they complete making it through the
    scanning process?
    Can you see files in your Buzzword organizer? (which is a
    different section than your My files organizer)
    Create new documents?
    It would be good to get another browser as a comparison test
    here as well, to see if there is any different behavior!
    It could be firewall related, but what you could do is maybe
    try logging into your account from another person's computer for a
    moment, to see if the files are visible there?
    Otherwise, the test from home, or laptop at a coffee shop,
    would be another good test!
    Get back to us with some of these questions answered, and
    we'll see about getting you up and running!
    Cheers,
    Pete

Maybe you are looking for

  • HOW can i delete the members in dim using MAXL

    Hi All, I want to delete the all the memebers for dimensions before reloading so how ca n i write the maxl script for this to delete the members in the dimensions plz can any one help on this its very urjent , It would be appriciated ... Thanks

  • Call Abap FM from XI mapping to insert lines to abap table

    Hi All, I'm trying to insert data from an XML file into a Z table during mapping in XI. I have an ABAP function module that takes in parameters and inserts into the corresponding fileds of the Z-table. How do I make use of this ABAP Function module i

  • Editing style sheet error

    Whenever I try to edit a component of my style sheet, I keep getting this error.  (attached screenshot). I look at the ipdc-screen.css is on my local disk. ???

  • I can't find anything backed up in Mail !

    Hello, I open mail, then I hit time machine and I can't find anything backed up! But I can see (and restore) all data backed up since april 2010 when I started using Time Machine. Any Ideas? tks Wagner

  • Making Siebel Run Fast with Oracle CBO – New PPS Recommendation - optimizer

    Hi All, I have some good news if you are upgrading to Oracle CBO. This is a big new find that we discovered a few weeks back. There is a certain class of queries that run very slow with the default Siebel recommended settings. Please keep in mind tha