How to avoid column/row nesting in crosstab

Hi,
I am using Cross Tab to get out put in following format. But every time i insert new column/row in cross tab it gets nested. I am trying to get following format. Could you please help or any pointer
                           Total          Col1+Col2 Col1          Col2          Col3+Col4     Col3          Col4     
Group          Total                  0.00          0.00          0.00          0.00          0.00          0.00          0.00     
          Sub Group1          0.00          0.00          0.00          0.00          0.00          0.00          0.00     
          Sub Group 2          0.00          0.00          0.00          0.00          0.00          0.00          0.00     
Regards,
Kuldeep
Edited by: Kuldeep Chitrakar on Apr 9, 2009 7:24 AM
Edited by: Kuldeep Chitrakar on Apr 9, 2009 7:31 AM

Hi Kuldeep,
Condition 1:
If you try to take one Dimension and one measure like Year and sales revenue using e-fashion demo universe then new column inserted will be nested when using cross tab where the measure values will be spread across multiple columns.
In this case you have to use condition to refer individual column names like
=[Sales revenue] Where([Year]="2001" )+ [Sales revenue] Where([Year]="2002")
and calculate the sum.
Select the measure column in the cross tab then click  the u201CInsert Sumu201D button it will display the sum in the last column of the cross tab then you can modify the formula generated to specify the condition which columnu2019s sum you want o display in that column.
Ex:  Use e-Fashion universe and take Year and sales Revenue turn it to cross tab and follow the process I mentioned.
Condition 2:
However if you use one dimension and multiple measure like the one you are using where you are trying to calculate sum of col1+col2 and so on. In this case you can directly insert the column and calculate the sum of column referring their names.
Ex: Use e-Fashion universe and take objects Year, Sales revenue. Quantity sold, Discount, margin here you can directly sum individual column values like sales revenue, quantity sold and discount +margin by inserting the column in between the columns using u201Cinsert Columnu201D
I  Hope this helpsu2026
Thanksu2026
Pratik

Similar Messages

  • How To avoid column heading for only total line in ALV list Display

    Hi,
    How To avoid column heading for only total line in ALV list Display.

    Hi,
    to change colunm header field catlog is built
    look at the example below
    Changing column text headers
    use this to change, hide, or alter the ALV columns
    CLEAR: gt_fcat.
    READ TABLE gt_fcat WITH KEY fieldname = 'TEXT1' " ***
    *TEXT1 is your field name
       ASSIGNING <gtfcat>.
    IF sy-subrc = 0.
       <gtfcat>-coltext   = 'Date Type'.
       <gtfcat>-no_out    = ' '.
       <gtfcat>-tooltip   = 'Date Type Text from IT0019'.
       <gtfcat>-seltext   = 'IT0019'.
    keep seltext to '' if u want to hide
    ENDIF.
    regards
    austin

  • How to avoid default row on top of a table

    Dear Members,
    I have created a simple JSF page using ADF.
    In the page, I am displaying departments and employee data.
    Departments data is displayed using the ADF Form and the employee data is displayed using ADF Table.
    When I am running the page a default row is appearing above the ADF Table.
    I request you to please let me know, how to avoid this default row displayed on top of the table.
    Many thanks in advance.
    Regards.

    Hello John,
    My page code is as follows:
    *<?xml version='1.0' encoding='UTF-8'?>*
    *<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">*
    *<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">*
    *<af:document title="DeptEmp.jsf" id="d1">*
    *<af:messages id="m1"/>*
    *<af:form id="f1">*
    *<af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx" id="pt1">*
    *<f:facet name="center">*
    *<af:group id="g1">*
    *<af:panelGroupLayout id="pgl1" layout="vertical" halign="center">*
    *<af:panelFormLayout id="pfl1" maxColumns="2" rows="2">*
    *<af:inputText value="#{bindings.DepartmentId.inputValue}"*
    *label="#{bindings.DepartmentId.hints.label}"*
    *required="#{bindings.DepartmentId.hints.mandatory}"*
    *columns="#{bindings.DepartmentId.hints.displayWidth}"*
    *maximumLength="#{bindings.DepartmentId.hints.precision}"*
    *shortDesc="#{bindings.DepartmentId.hints.tooltip}" id="it1">*
    *<f:validator binding="#{bindings.DepartmentId.validator}"/>*
    *<af:convertNumber groupingUsed="false" pattern="#{bindings.DepartmentId.format}"/>*
    *</af:inputText>*
    *<af:inputText value="#{bindings.DepartmentName.inputValue}"*
    *label="#{bindings.DepartmentName.hints.label}"*
    *required="#{bindings.DepartmentName.hints.mandatory}"*
    *columns="#{bindings.DepartmentName.hints.displayWidth}"*
    *maximumLength="#{bindings.DepartmentName.hints.precision}"*
    *shortDesc="#{bindings.DepartmentName.hints.tooltip}" id="it12">*
    *<f:validator binding="#{bindings.DepartmentName.validator}"/>*
    *</af:inputText>*
    *<af:inputText value="#{bindings.LocationId.inputValue}"*
    *label="#{bindings.LocationId.hints.label}"*
    *required="#{bindings.LocationId.hints.mandatory}"*
    *columns="#{bindings.LocationId.hints.displayWidth}"*
    *maximumLength="#{bindings.LocationId.hints.precision}"*
    *shortDesc="#{bindings.LocationId.hints.tooltip}" id="it13">*
    *<f:validator binding="#{bindings.LocationId.validator}"/>*
    *<af:convertNumber groupingUsed="false" pattern="#{bindings.LocationId.format}"/>*
    *</af:inputText>*
    *<af:inputText value="#{bindings.ManagerId.inputValue}"*
    *label="#{bindings.ManagerId.hints.label}"*
    *required="#{bindings.ManagerId.hints.mandatory}"*
    *columns="#{bindings.ManagerId.hints.displayWidth}"*
    *maximumLength="#{bindings.ManagerId.hints.precision}"*
    *shortDesc="#{bindings.ManagerId.hints.tooltip}" id="it14">*
    *<f:validator binding="#{bindings.ManagerId.validator}"/>*
    *<af:convertNumber groupingUsed="false" pattern="#{bindings.ManagerId.format}"/>*
    *</af:inputText>*
    *<f:facet name="footer">*
    *<af:panelGroupLayout layout="vertical" id="pgl3">*
    *<af:panelGroupLayout layout="horizontal" id="pgl4">*
    *<f:facet name="separator">*
    *<af:spacer width="10" height="1" id="s1"/>*
    *</f:facet>*
    *<af:commandButton actionListener="#{bindings.First.execute}" text="First"*
    *disabled="#{!bindings.First.enabled}" partialSubmit="true"*
    *id="cb1"/>*
    *<af:commandButton actionListener="#{bindings.Previous.execute}"*
    *text="Previous" disabled="#{!bindings.Previous.enabled}"*
    *partialSubmit="true" id="cb2"/>*
    *<af:commandButton actionListener="#{bindings.Next.execute}" text="Next"*
    *disabled="#{!bindings.Next.enabled}" partialSubmit="true"*
    *id="cb3"/>*
    *<af:commandButton actionListener="#{bindings.Last.execute}" text="Last"*
    *disabled="#{!bindings.Last.enabled}" partialSubmit="true"*
    *id="cb4"/>*
    *</af:panelGroupLayout>*
    *<af:commandButton text="Submit" id="cb5"/>*
    *</af:panelGroupLayout>*
    *</f:facet>*
    *</af:panelFormLayout>*
    *</af:panelGroupLayout>*
    *<af:spacer width="10" height="20" id="s2"/>*
    *<af:separator id="s3"/>*
    *<af:panelGroupLayout id="pgl2" layout="vertical" halign="center">*
    *<af:table value="#{bindings.EmployeesVO1.collectionModel}" var="row"*
    *rows="#{bindings.EmployeesVO1.rangeSize}"*
    *emptyText="#{bindings.EmployeesVO1.viewable ? 'No data to display.' : 'Access Denied.'}"*
    *fetchSize="#{bindings.EmployeesVO1.rangeSize}" rowBandingInterval="0"*
    *filterModel="#{bindings.EmployeesVO1Query.queryDescriptor}"*
    *queryListener="#{bindings.EmployeesVO1Query.processQuery}" filterVisible="true"*
    *varStatus="vs"*
    *selectionListener="#{bindings.EmployeesVO1.collectionModel.makeCurrent}"*
    *rowSelection="multiple" id="t1" width="90%" partialTriggers="::cb6">*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.CommissionPct.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.CommissionPct.label}" id="c1">*
    *<af:inputText value="#{row.bindings.CommissionPct.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.CommissionPct.label}"*
    *required="#{bindings.EmployeesVO1.hints.CommissionPct.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.CommissionPct.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.CommissionPct.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.CommissionPct.tooltip}"*
    *id="it2">*
    *<f:validator binding="#{row.bindings.CommissionPct.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.DepartmentId.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.DepartmentId.label}" id="c2">*
    *<af:inputText value="#{row.bindings.DepartmentId.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.DepartmentId.label}"*
    *required="#{bindings.EmployeesVO1.hints.DepartmentId.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.DepartmentId.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.DepartmentId.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.DepartmentId.tooltip}"*
    *id="it3" readOnly="true">*
    *<f:validator binding="#{row.bindings.DepartmentId.validator}"/>*
    *<af:convertNumber groupingUsed="false"*
    *pattern="#{bindings.EmployeesVO1.hints.DepartmentId.format}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.Email.name}" filterable="true"*
    *sortable="true" headerText="#{bindings.EmployeesVO1.hints.Email.label}"*
    *id="c3">*
    *<af:inputText value="#{row.bindings.Email.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.Email.label}"*
    *required="#{bindings.EmployeesVO1.hints.Email.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.Email.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.Email.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.Email.tooltip}" id="it4">*
    *<f:validator binding="#{row.bindings.Email.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.EmployeeId.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.EmployeeId.label}" id="c4">*
    *<af:inputText value="#{row.bindings.EmployeeId.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.EmployeeId.label}"*
    *required="#{bindings.EmployeesVO1.hints.EmployeeId.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.EmployeeId.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.EmployeeId.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.EmployeeId.tooltip}"*
    *id="it5">*
    *<f:validator binding="#{row.bindings.EmployeeId.validator}"/>*
    *<af:convertNumber groupingUsed="false"*
    *pattern="#{bindings.EmployeesVO1.hints.EmployeeId.format}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.FirstName.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.FirstName.label}" id="c5">*
    *<af:inputText value="#{row.bindings.FirstName.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.FirstName.label}"*
    *required="#{bindings.EmployeesVO1.hints.FirstName.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.FirstName.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.FirstName.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.FirstName.tooltip}" id="it6">*
    *<f:validator binding="#{row.bindings.FirstName.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.HireDate.name}" filterable="true"*
    *sortable="true" headerText="#{bindings.EmployeesVO1.hints.HireDate.label}"*
    *id="c6">*
    *<f:facet name="filter">*
    *<af:inputDate value="#{vs.filterCriteria.HireDate}" id="id1">*
    *<af:convertDateTime pattern="#{bindings.EmployeesVO1.hints.HireDate.format}"/>*
    *</af:inputDate>*
    *</f:facet>*
    *<af:inputDate value="#{row.bindings.HireDate.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.HireDate.label}"*
    *required="#{bindings.EmployeesVO1.hints.HireDate.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.HireDate.displayWidth}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.HireDate.tooltip}" id="id2">*
    *<f:validator binding="#{row.bindings.HireDate.validator}"/>*
    *<af:convertDateTime pattern="#{bindings.EmployeesVO1.hints.HireDate.format}"/>*
    *</af:inputDate>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.JobId.name}" filterable="true"*
    *sortable="true" headerText="#{bindings.EmployeesVO1.hints.JobId.label}"*
    *id="c7">*
    *<af:inputText value="#{row.bindings.JobId.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.JobId.label}"*
    *required="#{bindings.EmployeesVO1.hints.JobId.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.JobId.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.JobId.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.JobId.tooltip}" id="it7">*
    *<f:validator binding="#{row.bindings.JobId.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.LastName.name}" filterable="true"*
    *sortable="true" headerText="#{bindings.EmployeesVO1.hints.LastName.label}"*
    *id="c8">*
    *<af:inputText value="#{row.bindings.LastName.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.LastName.label}"*
    *required="#{bindings.EmployeesVO1.hints.LastName.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.LastName.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.LastName.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.LastName.tooltip}" id="it8">*
    *<f:validator binding="#{row.bindings.LastName.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.ManagerId.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.ManagerId.label}" id="c9">*
    *<af:inputText value="#{row.bindings.ManagerId.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.ManagerId.label}"*
    *required="#{bindings.EmployeesVO1.hints.ManagerId.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.ManagerId.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.ManagerId.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.ManagerId.tooltip}" id="it9">*
    *<f:validator binding="#{row.bindings.ManagerId.validator}"/>*
    *<af:convertNumber groupingUsed="false"*
    *pattern="#{bindings.EmployeesVO1.hints.ManagerId.format}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.PhoneNumber.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.PhoneNumber.label}" id="c10">*
    *<af:inputText value="#{row.bindings.PhoneNumber.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.PhoneNumber.label}"*
    *required="#{bindings.EmployeesVO1.hints.PhoneNumber.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.PhoneNumber.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.PhoneNumber.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.PhoneNumber.tooltip}"*
    *id="it10">*
    *<f:validator binding="#{row.bindings.PhoneNumber.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.Salary.name}" filterable="true"*
    *sortable="true" headerText="#{bindings.EmployeesVO1.hints.Salary.label}"*
    *id="c11">*
    *<af:inputText value="#{row.bindings.Salary.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.Salary.label}"*
    *required="#{bindings.EmployeesVO1.hints.Salary.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.Salary.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.Salary.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.Salary.tooltip}" id="it11">*
    *<f:validator binding="#{row.bindings.Salary.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *</af:table>*
    *<af:separator id="s4"/>*
    *<af:commandButton actionListener="#{bindings.CreateInsert.execute}" text="Create Employee"*
    *disabled="#{!bindings.CreateInsert.enabled}" id="cb6"/>*
    *</af:panelGroupLayout>*
    *<af:separator id="s5"/>*
    *<af:panelGroupLayout id="pgl5" layout="vertical" halign="center">*
    *<af:commandButton actionListener="#{bindings.Commit.execute}" text="Save"*
    *disabled="#{!bindings.Commit.enabled}" id="cb7"/>*
    *</af:panelGroupLayout>*
    *</af:group>*
    *</f:facet>*
    *<f:facet name="header"/>*
    *<f:facet name="branding"/>*
    *<f:facet name="copyright"/>*
    *<f:facet name="status"/>*
    *</af:pageTemplate>*
    *</af:form>*
    *</af:document>*
    *</f:view>*

  • How to avoid the below nested select statement

    Please any one help me how this select statemet is working and      how to avoid the nesetd select statement .
    if we avoid below nested , does it improve performace ?
    select field1 field2                                  
               into table w_feeds                                 
               from ZTable as t                         
               where field2 in r_feedf1                       
               and  POSITION_POSTDT =                           
               ( SELECT MAX( position_postdt ) FROM zTable 
                      where position_postdt le r_pdate-high    
                      and   field1 = t~field1 ).
    Thanks in Advace.

    Hi,
    Instead of nested query go for two separate queries. I see you are querying on the same table...so better go by this approach
    select field1 field2 POSITION_POSTDT
    into table w_feeds
    from ZTable
    where field2 in r_feedf1.
    Remove the where condition on POSITION_POSTDT
    Sort the table w_feeds by POSITION_POSTDT  Descending; So you will get data pertaining to Max Position_Postdt.
    Finally delete the other entries which are not Max.
    This will enhance the performance over the nested query.
    Regards
    Shiva
    Edited by: Shiva Kumar Tirumalasetty on Apr 27, 2010 7:00 PM
    Edited by: Shiva Kumar Tirumalasetty on Apr 27, 2010 7:00 PM

  • How to avoid the Summary Fields in CrossTab

    Hi all,
    I have created a report using crosstab view,,,in that i have selected two fields in the value column..but in the summary field i need to select only one column....
    but i cann't select only one field in the summary..Is that possible....if so please help me on this.....
    Thank You,
    Katchsathish

    Hi Kuldeep,
    Condition 1:
    If you try to take one Dimension and one measure like Year and sales revenue using e-fashion demo universe then new column inserted will be nested when using cross tab where the measure values will be spread across multiple columns.
    In this case you have to use condition to refer individual column names like
    =[Sales revenue] Where([Year]="2001" )+ [Sales revenue] Where([Year]="2002")
    and calculate the sum.
    Select the measure column in the cross tab then click  the u201CInsert Sumu201D button it will display the sum in the last column of the cross tab then you can modify the formula generated to specify the condition which columnu2019s sum you want o display in that column.
    Ex:  Use e-Fashion universe and take Year and sales Revenue turn it to cross tab and follow the process I mentioned.
    Condition 2:
    However if you use one dimension and multiple measure like the one you are using where you are trying to calculate sum of col1+col2 and so on. In this case you can directly insert the column and calculate the sum of column referring their names.
    Ex: Use e-Fashion universe and take objects Year, Sales revenue. Quantity sold, Discount, margin here you can directly sum individual column values like sales revenue, quantity sold and discount +margin by inserting the column in between the columns using u201Cinsert Columnu201D
    I  Hope this helpsu2026
    Thanksu2026
    Pratik

  • How to fix column / row as "header" in WAD (Web item Analysis) ?

    Hi,
    is there a possibility to fix a column or row as "header" in web item analysis? (like freeze panes in excel)
    When scrolling down, the header should always be displayed.
    Thank you very much in advance, best regards
    Frank

    We did a custom proof of concept on this back in 3.5 using CSS and/or javascript. At that time there was no BW solution for this.
    Don't know if 2004s has this ability or not. Here's a link to an example that shows how it can be done using CSS:
    http://home.tampabay.rr.com/bmerkey/examples/locked-column-csv.html

  • How to avoid duplicated rows using the outer join

    Hi everybody,
    I have the following query:
    select a.usr_login, b.ugp_rolename, b.ugp_display_name from
    (select usr.usr_login, usr.usr_key, usg.ugp_key from usr,usg
    where usg.usr_key = usr.usr_key
    and usr.usr_login IN ('C01015','C01208')) a,
    (select ugp.ugp_key, ugp.ugp_display_name from ugp
    where ugp.ugp_rolename LIKE 'B-%') b
    where a.ugp_key = b.ugp_key (+)
    The first query 'a' has the following result:
    usr_login <space> usr_key <space> ugp_key
    C01015 <space> 49 <space> 565
    C01015 <space> 49 <space> 683
    C01015 <space> 49 <space> 685
    C01015 <space> 49 <space> 3
    C01208 <space> 257 <space> 3
    The usr_login on table usr is the primary key, and as you can see above, for each usr_login I can find one ore more ugp_key on the table usg.
    The query 'b' gives the list of all the usr_login's roles which have the name LIKE 'B-%' (it means '*Business Roles*'), and all the respective role's key (ugp_key)
    So, when I join the query 'a' with the query 'b', I expect to find for every usr_login the respective ugp_display_name (the Business Role name).
    Because the query 'b' contains ONLY the ugp_keys of the Business Roles, when I execute the complete query, this is the result:
    usr_login <space> ugp_rolename <space> ugp_display_name
    C01015 <space> BK005 <space> TELLER 1
    C01015 <space> BK003 <space> TELLER 2
    C01015 <space> null <space> null
    C01015 <space> null <space> null
    C01208 <space> null <space> null
    As you can see, with the outer join I obtain the Business Name (ugp_display_name) for each occurrence (and I have 2 rows duplicated with 'null' for the usr_login C01015); This beacuse the query 'b' doesn't have the two ugp_keys 685 and 3.
    Instead I'd like to have the following result:
    usr_login <space> ugp_rolename <space> ugp_display_name
    C01015 <space> BK005 <space> TELLER 1
    C01015 <space> BK003 <space> TELLER 2
    C01208 <space> null <space> null
    deleting ONLY the duplicated rows with null, when the usr_login has already at least one ugp_display_name not null.
    For example:
    1) The usr_login 'C01015' has 2 Business Roles (with ugp_key = 565 and 683) and other 2 not-Business Roles (with ugp_key = 685 and 3) --> I want to see ONLY the 2 records related to the Business Roles
    2) The usr_login 'C01208' has only one not-Business Roles (with ugp_key = 3) --> I want to see the record related to the not- Business Role
    Practically:
    1) When a usr_login has one or more Business Roles and other not-Business Roles , I'd like to see ONLY the records about the Business Roles (not the records with 'null','null')
    2) When a usr_login doesn't have Business Roles, I'd like to see the records about the same usr_login with 'null','null'
    This, because I need to show both usr_logins: with and without Business Roles.
    Anybody has any suggestions ? Any help will be appreciated.
    Thanks in advance for any help !!
    Alex

    Hi, Alex,
    So you want to display rows from a where either
    (1) the row has a match in b, or
    (2) no iwith the same usr_login has a match.
    Here's one way to do that:
    WITH     a     AS
         SELECT  usr.usr_login, usr.usr_key, usg.ugp_key
         FROM      usr
         ,     usg
         WHERE      usg.usr_key     = usr.usr_key
         AND     usr.usr_login     IN ('C01015','C01208')
    ,     b     AS
         SELECT  ugp.ugp_key, ugp.ugp_display_name
         FROM      ugp
         WHERE     ugp.ugp_rolename     LIKE 'B-%'
    ,     got_match_cnt     AS
         SELECT     a.usr_login, b.ugp_rolename, b.ugp_display_name
         ,     b.ugp_key
         ,     COUNT (b.ugp_key) OVER (PARTITION BY  a.usr_login)     AS match_cnt
         FROM      a
         ,     b
         WHERE     a.ugp_key     = b.ugp_key (+)
    SELECT     usr_login, ugp_rolename, ugp_display_name
    FROM     got_match_cnt
    WHERE     ugp_key          IS NOT NULL     -- Condition (1)
    OR     match_cnt     = 0              -- Condition (2)
    ;If b.ugp_rolename or b.ugp_display_name can not be NULL, then you could use that just as well as b.ugp_key for testing condition (1).
    By the way, you don't need sub-queries for a and b; you can do all the joins and all the filtering (except conditions (1) and (2)) in one query, but the sub-queries aren't hurting anything. If you find the separate sub-queries easier to understand, debug and maintain, then, by all means, keep them.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.

  • Column / Row Spanning in UIX table

    Hi There,
    Anybody know how to achieve column/row spanning when using the uix databound table?
    For example, i would like a table which looked similar to the following:
         | Cell1  | Cell2 | Cell3 |
         | A spanned cell         |
         --------------------------Is it also possible to combine this with row spanning in a UIX table and then further combine it with the single-selection bean, producing an output similar to the below (how complex can i make this :)) :
         | Select | Column 1 | Column 2 | Column 3 |
         |        |  Cell 1  |  Cell 2  |  Cell 3  |
         |   o    |---------------------------------
         |        |  A spanned cell                |
         |        |  Cell 1  |  Cell 2  |  Cell 3  |
         |   o    |---------------------------------
         |        |  A spanned cell                |
         -------------------------------------------I guess I should add that both rows on the same select line would come from the same row of the data source.
    I get the impression that spanning can be done from looking through the BLAF standards at http://www.oracle.com/technology/tech/blaf/specs/tables.html#banding_group_colrow, although maybe this just related to the table layouts (where spanning of this type is easy enough) and isn't applicable/implemented for the databound table itself?
    Anyway, thanks in advance for any help :)
    Cheers,
    Lee

    Hi ,
    I have updated the function and its working fine.
    alter
    FUNCTION [dbo].[fnGetFirstOcurrences]
    (@Text nvarchar(max),
    @Delimiter
    char(1),
    @StopAt
    smallint)
    RETURNS
    nvarchar(max)
    BEGIN
    DECLARE @Return
    nvarchar(max),
    @Final
    int = 0,
    @Times
    smallint = 1,
    @Delimiters
    smallint
    SELECT  @Delimiters
    = LEN(@Text)
    - LEN(replace(REPLACE(@text,'
    ','#'), @Delimiter,
    IF
    (@Delimiters
    >= @StopAt)
    BEGIN
    WHILE @Times
    <= @StopAt
    BEGIN
    SET @Final
    = CHARINDEX(@Delimiter, @Text
    + @Delimiter, @Final
    + 1)
    SET @Times
    = @Times + 1
    END
    SET @Final
    = @Final - 1
    SELECT  @Return
    = LEFT(@Text, @Final);
    END
    ELSE
    BEGIN
    SELECT @Return
    = @Text +
    REPLICATE('  '
    + @Delimiter,
    (@StopAt - @Delimiters)
    - 1)
    END
    RETURN
    ISNULL(@Return, @Text)
    END
    Thanks
    Thankx &amp; regards, Vipin jha MCP

  • How can I preserve row and column addresses on multiple cells at once in Numbers?

    How can I preserve row and column addresses on multiple cells at once in Numbers 3.2.2? I do a lot of rearranging and sorting and want to reference cells in other sheets. After entering the formulas (example: '=Sheet1::Table 1::H126') I will sort the table and the formulas will not move with the sort.  I think I can fix this by going cell by cell checking the 'preserve row' and 'preserve column' boxes when editing the formula.  I want to avoid having to go one by one.  I know that checking the boxes creates a formula like this: '=Sheet1::Table 1::$H$126'  I have also tried entering this manually and filling down but it doesn't include the preservations (the $$) in the autofill.  If there is another way to remedy my sorting problem that would also be welcomed!
    THANKS!!

    The title of the post is this
    How can I preserve row and column addresses on multiple cells at once in Numbers?
    I restated the Question as follows
    Can "Preserve Row" an / or "Preserve Column" be set on multiple cells at the same time.
    In both cases it is not asked if multiple cells can be set to....
    That is a given.
    Step back a second...  It is like selecting multiple cells and setting the text color of the currently selected cells to red. This can be done. More than one cell at a time modified because they are currently selected.
    Whats is being asked is:  if more than one cell is selected at the same time can the settings "Preserve Row" an / or "Preserve Column" be applied. No table I put up will help with that question.
    YES or NO
    If YES how?

  • How to avoid submitting a page when tabular form rows are empty

    Hi,
    I have a master detail form in my application. There are 2 tables that are used Table A and Table B. Table A contains Ticket number and Table B refers to Table A through a foriegn key and Table B have columns like Date,Name, Age, ticket_id (that refers to the ticket_number of the Table A).
    This is how the application works:
    In a page there is a field for Ticket Number, once the user enters the Ticket Number and click Add Details, a tabular Form with 5 empty field appears... (Done through Page Process->Data Manipilation->Add Rows)
    This form contains fields Date, Name and Age. Once the user fills in all the details and click Submit button, the page is submitted. Whatever values that was entered is saved in Table B. Page Sucess message appears. This works fine.
    But once the Ticket Number is entered and Add Details is clicked, and without entering the values in the Tabular Form, if Submit button is clicked, there is no error showing up neither I see Page success message. But this should not be allowed. There should be some error showing up...
    Tabular Form Validations works only when user enters some values in the Tabular Form and click Submit. For the above scenario, where the form is untouched the validation doesnt work.
    How can I get this done? Any ideas?

    Hello Suzi,
    >> if (document.wwv_flow==null)
    The document.wwv_flow is an object representing the current form that was just rendered on your screen. As such, it can never be null.
    >> How to avoid submitting a page when tabular form rows are empty
    The correct way, especially for versions prior to APEX 4.0 is to use JavaScript, but for that, you need to know and understand how APEX generates your tabular form, HTML wise.
    To be very brief, APEX attached a unique ID to every updatable cell in the tabular form, using a certain pattern – each updatable column is getting a unique name (e.g. ‘f01’,’f02’ etc.) and the ID of a cell is a combination of this name with the serial row number the cell is on. For example, a cell on the third row in an updatable column called ‘f04’ will be given an ID of f04_0003. (More detailed explanation, with an example, can be found in my book).
    What you should do is to check these cells according to your validation policy (e.g. is all five row must be filled, is all the columns in a specific row must be filled, etc.).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • How to avoid merged columns on conversion

    Dear All,
    I have built some reports using Oracle Developer Report Suit. All is well and working fine but when I send report output to Excel file I am facing following two issues:
    1) It goes always to .xls file which is excel 97 format and having limit of maximum 65 thousands rows. Can I convert report to excel 2010 .xlsx file as my reports sometime contains large number of rows?
    2) When I convert into excel all information comes normally with proper format but some of report columns occupy multiple excel columns which is causing difficulties in sorting and other function in excel. How to avoid it?
    I would be glade to hear from you guys to resolve above issues.
    Thanks!

    Zia wrote:
    1) I have a detail report which contains more than 100 thousands rows. This report is already on menu and available to users. User have got an option on menu that they can select output either 'screen' or 'spreadsheet'. If user select option as 'spreadsheet', report open in excel file but in old excel and truncating excessive rows as .xls have limitation of maximum 65 thousands rows. I do not want to use 'csv' format as directly conversion into excel is more convinient for users. If report contains less than 65 thousands rows then everything is fine and no issues with the report. I hope I could explain real problem this time.65 thousands rows is the limitation of that version u use. I use Microsoft Office 2010 where limitation is 1048576 is a sheet.
    One solution is uninstall the present Office version and use Office 2010.
    2) Regarding second point, I have a summary report which is all fine and showing desired output in desired format. But when user want output in excel file, some of report columns occupy more than one columns and causing difficulties for users. Actually users do need to convert few reports into excel and work with formulas in excel but in this situation they have to do lots of changes in format before applying formulas. A sample screen shot of a report and converted report in excel file both can be seen on this link [https://skydrive.live.com/?cid=573511bde4261fe6#cid=573511BDE4261FE6&id=573511BDE4261FE6%21120]
    I'm not sure about the solution. Most probably you have more space in repeating frame and cause this thing happen. shorter the space in the frame and try.
    Hope this will help you.

  • Sql report, How to access current rows 6 columns data

    I have one page having page items & SQL report having 8 columns.
    First column of report is a link for editing.
    on clicking first column, that record gets displayed on page items, which are opn same page.
    Now my problem is i have used link column of report and set 3 page items value on click of link column.\
    But i need to set values for 2 more page items.
    I tried to create computation & process but not working. i am confused about which process point to select & whether onclick page gets submitted or not.
    I tried to write jscript but not succeeded. I dont know how to get current row id in jscript & different column values of current rowid.
    any help.

    Hi,
    Thanks for reply.
    in 5 items, first three are numeric and last two are timestamp fromtime, totime.
    as I mentioned earlier if i interchange 4 & 5 items i.e. now ITEM4 is totime & ITEM5 is fromtime
    and their values. I get value for totime & not for fromtime. all records contain values for all 5 columns. no null.
    So basically their is no problem in value or data, The only problem is whatever sequence is maintained first 4 items get value & 5th item remains blenk.
    Either I type all 5 ITEM NAMES in one Item name-value pair of link or use all three pairs, 5th ITEM remain blank.

  • How to repeat a row when tablix columns print over more than one page

    I have a tablix with 20 Columns.  When this prints it prints over 3 pages (which is
    OK).   The first Column is the Name (in this case it is the
    Project name).  On Page 2 & 3 I want to print the Project name again,
    so that a report user does not need to go back to page one to figure out which
    project the columns are referring two.  In Excel there is an option
    "Rows To Repeat".  I am trying to do the same in SSRS
    2012. 
    I have tried links
    like:
    http://msdn.microsoft.com/en-us/library/dd207045.aspx
    http://remicaron.wordpress.com/2010/01/05/how-to-get-ssrs-to-repeat-the-row-headers-tablix-2008/
    http://www.sqlcircuit.com/2012/03/ssrs-how-to-repeat-column-header-in.html
    These do not work
    for me .... in fact they return an error msg
    Can this be done?
    Tx
    Andrew
    Andrew Payze

    Hi Andrew,
    If I understand correctly, there are 20 columns in the table. When it prints over 3 pages, the report should repeat the first column in all pages.
    To freeze row header in the table, we can refer to the following steps:
    The table should have a group. If the Name is already a row group, we can directly refer to step 2. Or we need add a row group grouped by Name ahead.
    Right-click the table to open the Tablix Properties dialog box, then enable “Repeat header rows on each page” and “Keep header visible while scrolling” options under Row Headers category.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • How to get fourthly row (row4) first column value (col1) in matrix

    Hi to all,
    In FMS, how to get fourthly row (row4) first column value (col1) in matrix in document.
    select $[$38.1.4]
    But it display the first row
    Please give me hint.
    Thank you

    Hi Eric,
    FMS may only apply to current row.  There is no way to get any other fixed row.
    Thanks,
    Gordon

  • How to print the row  ,column,and particular cell in separate color

    how to print the row  ,column,and particular cell in separate color IN ALV GRID

    HI,
    Here you go good program links
    <a href="http://www.sapfans.com/forums/viewtopic.php?t=52107">How to Set Color to a Cell in AVL</a>
    <a href="http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_color.htm">ALV Grid Coloring</a>
    Thanks
    Mahesh

Maybe you are looking for