Problem in displaying multiple column values using Narrative View

Hi All,
I have a requirement where in I need to display column 1 of an Answers report as a header and all values of column 2 below tht.
There are multiple values from column 2 for every value in column 1
Example:
Group:
Grp (This is column 1)
Activity:
Act1
Act2
Act3 (These are values from column 2)
I have used narrative view for this which looks like:
Group: @1
Activity:@2[br/]
But this displays the value of column1 along with every value of column 2. I want column 1 value to be displayed only once.
Thanks in advance
Radhika

Hi see this link it may helpful
Re: Narrative view not showing up in the report
Re: how to transpose columns to rows in OBIEE
Regards
Naresh

Similar Messages

  • How to pass column values to narrative view  in obiee11g

    Hi All,
    my report values like this
    Month_name value
    Jan 100
    Feb 500
    march 400
    April 1000
    Now I can display march values in narrative view
    Ex:march values is 400.
    when i use @1,@2 it will display the Jan values.
    And Also i want show the Table view also in same report.

    Hello,
    Using dynamic sql you can pass column name to function. well I am not getting what you really want to do ? Please write in more detail. By the way I am providing one example here. see it uses dynamic sql.
    Create or replace function fun_updtest (p_columnname_varchar2 in varchar2,
    p_value_number in number)
    return number is
    v_stmt varchar2(500);
    begin
    v_stmt := 'update emp
    set '||p_columnname_varchar2||' = '||to_char(p_value_number)||'
              where empno = 7369';
    execute immediate v_stmt;
    return 0;
    commit;
    end;
    call to this function can be like this..
    declare
    v_number               number;
    begin
    v_number := fun_updtest('SAL',5000);
    end;
    Adinath Kamode

  • Return all the column values using the F4IF_INT_TABLE_VALUE_REQUEST

    Hi,
    How to return all the column values using the F4IF_INT_TABLE_VALUE_REQUEST?
    For example : if the row has 3 columns then after selecting the particular row, the RETURN_TAB internal table should contain all the three column values.
    Regards,
    Raghu

    Hi,
       Try the following...
    DATA : it_fields like help_value occurs 1 with header line.
    data: begin of w_vbap,
            vbeln      like vbap-vbeln,    
            posnr      like vbap-posnr,   
            werks      like vbap-werks,  
          end of w_vbap.
    data: i_vbap   like w_vbap   occurs 0 with header line,
             w_fields type help_value,
          i_dfies type table of dfies,
          i_return_tab type table of ddshretval with header line,
          i_field  type dfies.
      select vbeln posnr werks
          from vbap into table i_vbap up to 5 rows.
    if sy-subrc = 0.
       sort i_vbap by vbeln.
    endif.
      clear it_fields[] , it_fields.
      it_fields-tabname = c_vbap.
      it_fields-fieldname = 'VBELN'.
      it_fields-selectflag = c_on.
      append it_fields.
      it_fields-tabname = c_vbap.
      it_fields-fieldname = 'POSNR'.
      it_fields-selectflag = space.
      append it_fields.
      it_fields-tabname = c_vbap.
      it_fields-fieldname = 'WERKS'.
      it_fields-selectflag = space.
      append it_fields.
      loop at it_fields into w_fields.
        i_field-tabname   = w_fields-tabname.
        i_field-fieldname = w_fields-fieldname.
        i_field-keyflag   = w_fields-selectflag.
        append i_field to i_dfies.
      endloop.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        exporting
          retfield               = 'VBELN'
         window_title           = 'Select'
        tables
          value_tab              = i_vbap
          field_tab                = i_dfies
          return_tab             = i_return_tab
       exceptions
         parameter_error        = 1
         no_values_found        = 2
         others                 = 3
      read table i_return_tab into w_return_tab index 1.
      if sy-subrc = 0.
      endif.
    Regards,
    Srini.

  • Problem in displaying Alv grid output  using oops........

    hi,
    i have two problems in displaying ALV grid output Using Oops.
    1) How to modify the fieldcatalog after we getting a field catalog using general FM.
    2) initialy it is displaying 13 fields but there are 63 fields .
       eventhough we chage the layout to 63 fields it is displaying only 13 fields , these 13 fields may be different based on our selection but count  of displayed fileds are same . how can display 63 fields at a time .

    Hi,
    You can chnage using below code:
    loop at gt_fieldcat.
    if <gt_fieldcat-field_name> = 'FIELDNAME'.
    endif.
    modify gt_fieldcat.
    clear gt_fieldcat.
    endloop.
    Make sure that all the field should not have no_out = 'X' and tech = 'X'.
    Thanks,
    Sriram Ponna.

  • How to sum a column value using CAML Query?

    Hi All,
    I would like to sum the column value using CAML qeury. Actually in my list, I have two column "Projects Name" and "Number of Issues". Now need to get sum of "Number of Issues" column. How to achieve in CAML Query.
    Thanks in advance!

    Hi Sam,
    it looks like you can use your current view based agregation, otherwise it is not possible(
    http://msdn.microsoft.com/en-us/library/ms467521.aspx) and you need to work on custom bit on this requirement.
    use the below link and create a view element as described and see if that works for you
    Aggregations Element
    http://msdn.microsoft.com/en-us/library/ms468626%28v=office.12%29.aspx
    Another reference
    Query Element
    http://msdn.microsoft.com/en-us/library/ms471093.aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • How to swap column values using variable in sql?

    Hi,
    I have a table and i want to swap two column values using variable
    please help me

    Hi,
    Let us assume that the DeptNAME and DeptNo columns are of type VARCHAR2. However, DeptNO column is VARCHAR2(10) and DeptNAMe is VARCHAR2(100).
    First of all DeptNo column needs to be modified to be 100.
    i) ALTER TABLE DEPT MODIFY DEPTNO VARCHAR2(100);
    Secondly, you will swap DEPTNAME and DEPTNO values using the SQL as follows:
    ii) update dept t1
    set deptname = (select deptno from dept2 t2 where t1.deptno = t2.deptno),
    deptno = (select deptname from dept2 t2 where t1.deptno = t2.deptno);
    Now, finally you want the deptname columns to be VARCHAR2(10)
    iii) ALTER TABLE DEPT MODIFY DEPTNAME VARCHAR2(10).
    If DEPTNO is a NUMBER column, you cannot alter the datatype unless the table is empty; in that case the whole swapping requirement would be moot.
    Trinath Somanchi,
    ( http://www.myospages.com )

  • How to update zero to a column value when record does not exist in table but should display the column value when it exists in table?

    Hello Everyone,
    How to update zero to a column value when record does not exist in table  but should display the column value when it exists in table
    Regards
    Regards Gautam S

    As per my understanding...
    You Would like to see this 
    Code:
    SELECT COALESCE(Salary,0) from Employee;
    Regards
    Shivaprasad S
    Please mark as answer if helpful
    Shiv

  • How to get Metadata column values using powershell(CSOM)

    Hi,
    I am trying to get list column values using Powershell (CSOM), but I am getting for Metata data columns.
    I am getting internal value as System.Collections.Generic.Dictionary`2[System.String,System.Object] 
    Can anybody let me know how to get the values for metadata columns?
    Any help would be greatly appreciate.
    Thank you.
    AA.

    Hi
    Go through the links. It'll help.
    SharePoint 2013 Code Tips – Setting a Managed Metadata Field with the Client Object Model(CSOM and JSOM)
    Indul Hassan
    Microsoft Community Contributor
    http://www.indulhassan.com
    You Snooze.. You Lose !!

  • Infopath display lookup column value

    Hi
    I have a Infopath 2010 form with which displays an employee record. Some of the columns are lookup from a sharepoint list.
    How can I display the value of the lookup column instead of Id in the form.
    The form has the main connection and the secondary connection for the lookup sharepoint lists.
    The sharepoint lookup column is set to "Title" in additional column settings. Add a column to show each of the additional fields are all unchecked.
    I searched google, but couldnt find an answer.
    I tried to do the way described in http://sharepointsolutions.com/sharepoint-help/blog/2011/11/get-infopath-to-display-lookup-column-value-not-id/ 
    But get error , since it works for repeated table. 
    Any Ideas?
    Thanks
    Venky

    Hi Venky,
    How did you create your look up  column? Which column type is the column which your look up column looks for?
    By my test, it is default behavior that the InfoPath form display the value of the lookup column.
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • Dashboard Prompt (All Choices) using Narrative View

    Using Narrative View I can display LOVs of Prompt but when the (All Choices) selected, how to display using Narrative View?

    In Your criteria Create a column with foruma like the below
    CASE WHEN '@{psitename}{All}' = '' THEN 'ALL' else '@{psitename}{All}' end
    And now in your narrative of the report, Add @2 if the above column is in second place of criteria. Add this narrative in you compound layout. Hide the column if you dont want show it in table view.
    This code works in 3 cases.
    1. If variable is null then it shows default value - All
    2. If variable is selected to all choices then it shows ALL
    3. If you select any site, that shows site name.
    let me know if does not work for you..
    - Madan

  • How can I display multiple column results of a sql query?

    I'm wanting to display the results of a query selecting from multiple columns, but I can't seem to find an item type that will allow this. I've tried LOV, multiselect, display as text and others. Any ideas on how to do this. Here is my basic query:
    Select ul.meaning,
    rqa.submission_date,
    rqa.location_num
    from
    cfa_rqa_doc_submit_dates rqa,
    cfa_user_lookups ul
    where
    rqa.location_num in (Select location_num from cfa_current_locations_mv
    where operator_person_id = :P1_PERSON_ID and substr(location_num,1,1) = '8')
    and
    ul.lookup_type_id='1269'
    and
    to_char(rqa.submission_date, 'month') = to_char(sysdate, 'month')
    and
    rqa.submission_date >= (SYSDATE-365)
    and ul.lookup_ID= rqa.document_type_id
    ;

    Hi,
    Do you just wish to display the result of the query? If so, you can simply parse it out in HTML.
    You can then choose if you want to use tables or css.
    Multiple column layout in tables are based on <tr> and <td>.
    <tr> is a table row, where <td> is a column.
    All tags should be closed.
    Example:
    <table>
    <tr>
    <td>col1</td><td>col2</td>
    </tr>
    <tr>
    <td colspan="2">spans over 2 cols</td>
    </tr>
    </table>If you want to do the same in css:
    (Seems this forum removes the styles!):
    float:left; width:50; << first div and 2 div (col 1 and col 2 style)
    float:left;clear:both; width:100%; << clear both, double width (spans over 2)
    <div>
    <div style="float:left; width:50;">col1</div><div style="float:left;width:50%;">col2</div>
    <div style="float:left;clear:both; width=100%;">Spans over 2 cols</div>
    </div>The div might look more complicated, but if you refrain from styling in the tags them selves, you can define different styles in the .css file.
    You need the clear:both to start a new line with the divs that float.
    I usually run a dedicated "new line" div, without content.. (exception beeing the html-entities version of ' ' (& nbsp ; << without the spaces)).
    eg.:
    <div style="cls"> </div>Parsing out the values from the PL SQL you do like so:
    begin
    declare
       cursor c_search is 
    Select ul.meaning,
    rqa.submission_date,
    rqa.location_num
    from
    cfa_rqa_doc_submit_dates rqa,
    cfa_user_lookups ul
    where
    rqa.location_num in (Select location_num from cfa_current_locations_mv
    where operator_person_id = :P1_PERSON_ID and substr(location_num,1,1) = '8')
    and
    ul.lookup_type_id='1269'
    and
    to_char(rqa.submission_date, 'month') = to_char(sysdate, 'month')
    and
    rqa.submission_date >= (SYSDATE-365)
    and ul.lookup_ID= rqa.document_type_id
    begin  
    htp.p('<div style="width:80%;">');
    for v_search in c_search loop
    htp.p('<div style="float:left;clear:none;">'||v_search.location_num||'</div>');
    htp.p('<div style="float:left;clear:none;">'||v_search.submission_date||'</div>');
    end loop;
    htp.p('</div>');
      end;
    end;Ps. hope I understood you correctly, also this code is untested.. but I hope it can still help.
    Edited by: Olav Alexander Mjelde on May 12, 2010 9:36 AM

  • Af:treeTable: how build tree that displays multiple columns?

    I only find a default single column behavior in the dev guide regarding af:treetable. Perhaps some of you might have already tried this out, I'm trying to build a master detail using a treetable with multiple columns. After establishing the ViewLink association and dragging the Master View Object onto the cavas, the default generated code looks like:
    <af:treeTable ...
    <f:facet name="nodeStamp">
    <af:column binding="#{backing_tree.column1}" id="column1"
    sortable="false" headerText="">
    <af:outputText value="#{node}"
    binding="#{backing_tree.outputText1}"
    id="outputText1"/>
    </af:column>
    </f:facet>
    </af:treeTable>
    This renderes the entire tree in one column, but my detail ViewObject contains multiple attributes and I would like seperate columns to display those values. I'm not sure how to extract the "#{node}" EL to output the detail or child ViewObject's values in seperate af:column. Can someone advise? Thank you.
    Z

    Luis, thanks for the suggestion. I did get the header labels to show, however, the values are still not being printed correctly. I have department as the Master or parent node and employee as the Detail or child node. Here is what I have
    <af:treeTable value="#{bindings.DeptView1.treeModel}" var="node"
    binding="#{backing_treeTest.treeTable1}" id="treeTable1"
    rowsByDepth="0 0">
    <f:facet name="nodeStamp">
    <af:column binding="#{backing_treeTest.column1}" id="column1">
    <f:facet name="header">
    <af:outputText value="Department Name"/>
    </f:facet>
    <af:outputText value="#{node.Dname}"
    binding="#{backing_treeTest.outputText1}"
    id="outputText1"/>
    </af:column>
    </f:facet>
    <f:facet name="pathStamp">
    <af:outputText value="#{node.Dname}"
    binding="#{backing_treeTest.outputText2}"
    id="outputText2"/>
    </f:facet>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Employee Name"/>
    </f:facet>
    <af:outputText value="#{node.Ename}"
    binding="#{backing_treeTest.outputText3}"
    id="outputText3"/>
    </af:column>
    </af:treeTable>
    The Tree Table looks Like:
    Department Name | Employee Name
    - Accounting
    Thanks in advance,
    Z

  • Content Query display multiple columns

    Hello,
    I am using a content query web part (in sharepoint 2013) to display a list from another site. The problem is that I don't see enough info from that list because I can display maximum 2 columns.
    Is it possible to display more columns from this list with the Content query web part? I would like to display all the columns from this list. Do i need to make a display template or something? 
    Thanks. 

    You have to customize the CQWP.
    Please check the below link
    http://pholpar.wordpress.com/2010/01/21/displaying-results-in-multiple-columns-using-the-content-query-web-part/
    Other option is you ca use Dataview webpart to show the list details from one site to other site
    http://www.learningsharepoint.com/2012/08/12/sharepoint-2013-add-dataview-webpart-with-sharepoint-designer-2013/
    http://sharepointgeorge.com/2009/display-sharepoint-list-site-data-view-web-part/
    MCTS,MCPD Sharepoint 2010. My Blog-
    http://www.sharepoint-journey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Vote as Helpful

  • Linq selecting multiple columns when using anonymous types using Sum multiple columns

    I have a list with multiple columns where I need to sum a list of columns for each row into a new column (not 100% sure if there is another way to sum other than I have done it). Problem I'm having is being able to select more than just column I'm creating
    used from summing the other column and the Key. Below will produce a row with the CustomerId and the total of all the months.
    CustomerId
    Total
    12345
    2500.00
    12346
    3000.00
    But let's say I have a row called Name in "history"--how can display it in the query results as below.  I'm unable to reference anything but the key.
    CustomerId
    Total
    Name
    12345
    2500.00
    John Smith
    12346
    3000.00
    May Allen
    var list = history
    .GroupBy(g => g.CustomerId)
    .Select(sg =>
    new
    Key = lg.Key,
    SumTotal = sg.Sum(x => x.month_01)
    + sg.Sum(x => x.month_02)
    + sg.Sum(x => x.month_03)
    + sg.Sum(x => x.month_04)
    + sg.Sum(x => x.month_05)
    + sg.Sum(x => x.month_06)
    + sg.Sum(x => x.month_07)
    + sg.Sum(x => x.month_08)
    + sg.Sum(x => x.month_09)
    + sg.Sum(x => x.month_10)
    + sg.Sum(x => x.month_11)
    + sg.Sum(x => x.month_12)

    Hi
    ajl7519,
    I have tested on my side,  please check my code. 
    InitializeComponent();
    AuctionItems = new List<AuctionItem>() {
    new AuctionItem() { Category = "Car", CurrentPrice = "100", Description = "100", SpecialFeatures = "100", StartDate = 1, StartPrice = 1 },
    new AuctionItem() { Category = "Car", CurrentPrice = "100", Description = "100", SpecialFeatures = "100", StartDate = 2, StartPrice = 2 },
    new AuctionItem() { Category = "Car", CurrentPrice = "100", Description = "100", SpecialFeatures = "100", StartDate = 3, StartPrice = 3 }
    var resu = AuctionItems.GroupBy(a => new { a.Category, a.Description }).Select(sg => new { ID = sg.Key.Category, Total = sg.Sum(oc => oc.StartPrice + oc.StartDate), Name = sg.Key.Description });
     You also can change your code to
    • SumTotal = sg.Sum(x => x.month_01+x.month_02+ ......)
    Have a nice day !
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Update tabular report column value using AJAX

    Hi,
    I'm developing an online store application whereby I would like the user to be able browse a list of products (tabluar report), enter an order quantity against a product and click a 'Buy' button (column link). This should then update a collection with the selected product id and order quantity. However, I'm struggling with how to update the order qty column value.
    See http://apex.oracle.com/pls/otn/f?p=33248:1 for an example
    The report displays the products from demo_product_info table. I have an additional column in the report SQL for the order quantity (set to '1').
    I'm using a column link on the product_id column that sets
    P1_TEMP_PRODUCT_ID = #PRODUCT_ID#
    P1_TEMP_QTY = #QTY_ORDERED#
    then re-renders the page.
    I have a page rendering process that takes the values from the temp items and updates a collection.
    When the user changes the order quantity, how do I update session state so the new value is picked up by the column link?
    Thanks,
    Andrew.

    To update session state you might check out this article titled, "ApEx: Setting session state from within a PL/SQL Package/Procedure/Function" at http://atulley.wordpress.com/2007/05/17/apex-setting-session-state-from-within-a-plsql-packageprocedurefunction/
    It says:
    The answer lies in the set_sesssion_state procedure found in the APEX_UTIL package. E.g.
    APEX_UTIL.set_session_state(
    p_name => ‘PX_MY_ITEM’
    , p_value => ‘wibble’);
    Now, I have a question for you. Once you set the value of the column in session state, how will you make that value be put in the database?
    Thanks, Maggie

Maybe you are looking for

  • Resizable panels in a JApplet, sort of like a Frame

    I have a dialog box that has a tree on the left and images/text displayed on the right. I have the tree and text placed on two different panels. I want the panels to be resizeable, in the way an HTML frame is resizable. This way the user can shorten

  • Photo attachment is .txt file not .jpg

    When I send a photo from iphone to yahoo or gmail address, the photo is imbedded in the email but the attachment is not a jpg file, it is a 3kb .txt file when opened says "sent from my iphone". When I right click on the imbedded photo, I cannot save

  • Illustrator CS 5.1 text sub layer problems

    Some issues happening with text sub layers, any insight into correcting would be great. 1) The show/hide eye icon for the sub layers has no effect - text always shows. Show/hide works for the full layer and for object sub layers, but not for any sub

  • Assignment of organization unit to a business partner

    Hi Guys, I am creating a business partner using transaction FPP7. I did not get the field to assign organization unit to a business partner. Regards Santosh

  • Unstable editing images

    While editing in Iphoto 7.1.5, images are becoming increasingly unstable. They look polarized, shift to predominantly red or orange, have bands of horizontal or vertical striations, and usually a line from the upper left to the lower right corner. It