How to hide row column on condition in report

Hello everyone,
Can its is possible to hide a Column of a row in report.
For one customer i am having Opening Balance n Closing Balance data.....i m breaking my report on customer wise (First Column). So I can see Customer only one time not 5..... now i want to see Opening Balance Data only in first row n Closing Balance Data only in last row.
How can i achieve this, pls help!
regards,
UKJ

Hi,
I have no idea but try this:SELECT  SEGMENT1,
        VENDOR_NAME,
        VENDOR_SITE_CODE,
        INVOICE_NUMBER,
        INVOICE_DATE,
        INVOICE_TYPE_LOOKUP_CODE,
        PAY_DATE,
        DESCRIPTION,
        CHECK_DATE,
        CHECK_NUMBER,
        VOUCHER_NUM,
        SUM(debit) debit,
        null credit,
        op_bal,
        cl_bal
from (
SELECT  SEGMENT1,
        VENDOR_NAME,
        VENDOR_SITE_CODE,
        INVOICE_NUMBER,
        INVOICE_DATE,
        INVOICE_TYPE_LOOKUP_CODE,
        PAY_DATE,
        DESCRIPTION,
        CHECK_DATE,
        CHECK_NUMBER,
        VOUCHER_NUM,
        SUM(debit) debit,
        null credit,
        op_bal,
        cl_bal
        row_number () over (partition by VENDOR_NAME order by INVOICE_DATE) rnk
from (
SELECT  SEGMENT1,
        VENDOR_NAME,
        VENDOR_SITE_CODE,
        INVOICE_NUMBER,
        INVOICE_DATE,
        INVOICE_TYPE_LOOKUP_CODE,
        PAY_DATE,
        DESCRIPTION,
        CHECK_DATE,
        CHECK_NUMBER,
        VOUCHER_NUM,
        SUM(debit) debit,
        null credit,
        op_bal,
        cl_bal   
    FROM (   
SELECT POV.SEGMENT1,
       POV.VENDOR_NAME,
       pov.vendor_id,
       POVS.VENDOR_SITE_CODE,
       hou.SET_OF_BOOKS_ID,
       API.INVOICE_NUM INVOICE_NUMBER,
       API.INVOICE_DATE,
       API.INVOICE_TYPE_LOOKUP_CODE,
       APPL.ACCOUNTING_DATE PAY_DATE,
       API.DESCRIPTION DESCRIPTION,
       TO_CHAR(APC.CHECK_DATE, 'dd-MON-yyyy') CHECK_DATE,
       APC.CHECK_NUMBER,
       APC.DOC_SEQUENCE_VALUE VOUCHER_NUM,
       API.INVOICE_AMOUNT,appl.amount,
       DECODE(API.INVOICE_TYPE_LOOKUP_CODE,'CREDIT',API.INVOICE_AMOUNT ,appl.amount) debit,
       null credit,
       jai_ap_rpt_apcr_pkg.compute_credit_balance(API.INVOICE_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) cr_amt,
       jai_ap_rpt_apcr_pkg.compute_debit_balance(API.INVOICE_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) dr_amt,
       jai_ap_rpt_apcr_pkg.compute_credit_balance(:P22_FROM_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) -
       jai_ap_rpt_apcr_pkg.compute_debit_balance(:P22_FROM_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) op_bal,
       jai_ap_rpt_apcr_pkg.compute_credit_balance(:P22_TO_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) -
       jai_ap_rpt_apcr_pkg.compute_debit_balance(:P22_TO_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) cl_bal
    FROM AP_INVOICES_ALL API,
         AP_INVOICE_LINES_ALL APIL,
         AP_INVOICE_DISTRIBUTIONS_ALL APD,
         PO_VENDORS POV,
         PO_VENDOR_SITES_ALL POVS,
         AP_INVOICE_PAYMENTS_ALL APPL,
         AP_CHECKS_ALL APC,
         hr_operating_units hou
   WHERE API.INVOICE_ID = APIL.INVOICE_ID
     AND API.INVOICE_ID = APD.INVOICE_ID
     AND API.VENDOR_ID = POV.VENDOR_ID
     AND API.VENDOR_SITE_ID = POVS.VENDOR_SITE_ID
     AND API.INVOICE_ID = APPL.INVOICE_ID
     AND APPL.CHECK_ID = APC.CHECK_ID
     AND APIL.line_number = apd.invoice_line_number
     AND APD.match_status_flag='A'
     AND API.org_id=hou.ORGANIZATION_ID
     AND APIL.LINE_TYPE_LOOKUP_CODE='ITEM'
     AND api.org_id = nvl(:p22_org_id,api.org_id)
     AND TRUNC(API.INVOICE_DATE) BETWEEN NVL (:P22_FROM_DATE,API.INVOICE_DATE)AND NVL(:P22_TO_DATE,API.INVOICE_DATE)
GROUP BY SEGMENT1,
         VENDOR_NAME,
         VENDOR_SITE_CODE,
         INVOICE_NUMBER,
         INVOICE_DATE,
         INVOICE_TYPE_LOOKUP_CODE,
         PAY_DATE,
         DESCRIPTION,
         CHECK_DATE,
         CHECK_NUMBER,
         VOUCHER_NUM,
         op_bal,
         cl_bal
UNION
SELECT SEGMENT1,
       VENDOR_NAME,
       VENDOR_SITE_CODE,
       INVOICE_NUMBER,
       INVOICE_DATE,
       INVOICE_TYPE_LOOKUP_CODE,
       PAY_DATE,
       DESCRIPTION,
       CHECK_DATE,
       CHECK_NUMBER,
       VOUCHER_NUM,
       debit,
       SUM(credit) credit,       
       op_bal,
       cl_bal
     FROM (  
SELECT POV.SEGMENT1,
       POV.VENDOR_NAME,
       POVS.VENDOR_SITE_CODE,
       API.INVOICE_NUM INVOICE_NUMBER,
       API.INVOICE_DATE,
       API.INVOICE_TYPE_LOOKUP_CODE,
       NULL PAY_DATE,
       API.DESCRIPTION DESCRIPTION,
       NULL CHECK_DATE,
       NULL CHECK_NUMBER,
       NULL VOUCHER_NUM,
       DECODE(API.INVOICE_TYPE_LOOKUP_CODE,'CREDIT',NULL ,abs(API.INVOICE_AMOUNT))  credit,
       DECODE(API.INVOICE_TYPE_LOOKUP_CODE,'CREDIT',abs(API.INVOICE_AMOUNT))  DEBIT,
       jai_ap_rpt_apcr_pkg.compute_credit_balance(API.INVOICE_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) -
       jai_ap_rpt_apcr_pkg.compute_debit_balance(API.INVOICE_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) op_bal,
       jai_ap_rpt_apcr_pkg.compute_credit_balance(:P22_TO_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) -
       jai_ap_rpt_apcr_pkg.compute_debit_balance(:P22_TO_DATE,pov.vendor_id,hou.SET_OF_BOOKS_ID,povs.VENDOR_SITE_CODE,:p22_org_id) cl_bal
   FROM AP_INVOICES_ALL API,
        AP_INVOICE_LINES_ALL APIL,
        AP_INVOICE_DISTRIBUTIONS_ALL APD,
        PO_VENDORS POV,
        PO_VENDOR_SITES_ALL POVS,
        hr_operating_units hou
   WHERE 1=1
    and api.org_id=apil.org_id
    and API.INVOICE_ID = APIL.INVOICE_ID
    AND API.INVOICE_ID = APD.INVOICE_ID
    AND API.VENDOR_ID = POV.VENDOR_ID
    AND API.VENDOR_SITE_ID = POVS.VENDOR_SITE_ID
    and api.org_id =apil.org_id
    and api.org_id=hou.ORGANIZATION_ID
    and apil.line_number = apd.invoice_line_number
    AND apd.match_status_flag='A'
    and apil.LINE_TYPE_LOOKUP_CODE='ITEM'      
    AND api.org_id = nvl(:p22_org_id,api.org_id)
    AND TRUNC(APD.ACCOUNTING_DATE) BETWEEN NVL (:P22_FROM_DATE,APD.ACCOUNTING_DATE) AND NVL (:P22_TO_DATE,APD.ACCOUNTING_DATE)
GROUP BY SEGMENT1,
         VENDOR_NAME,
         VENDOR_SITE_CODE,
         INVOICE_NUMBER,
         INVOICE_DATE,
         INVOICE_TYPE_LOOKUP_CODE,
         PAY_DATE,
         DEBIT,
         CREDIT,
         DESCRIPTION,
         CHECK_DATE,
         CHECK_NUMBER,
         VOUCHER_NUM,
         op_bal,
         cl_bal)
where rnk = 1If it doesn't work as required then alter the line row_number () over (partition by VENDOR_NAME order by INVOICE_DATE) rnk
I've just guessed that you can find a unique record (a persons account) by partitioning by the vendor_name at that point but perhaps you need other things.
Mike

Similar Messages

  • How to hide rows with merged cells?

    I would like to know how to hide rows on numbers with merged cells, could do it normally at excel but I am not being able to do it at Numbers.
    thanks!

    Felipe,
    To hide a row with Merged Cells, Un-Merge first, then Hide. Select the Merged Cells and Table > Unmerge.
    Note that this is only a problem with vertically merged cells when you want to Hide a Row.
    If you want to Hide a Column, you can't have a Horizontal Merge that involves that Column.
    Jerry

  • How to hide a column (clnt) in tableview using MVC?

    Hy,
    I would like, please if you cand help me: how to hide a column (clnt) in tableview using MVC for example on sflight table.
    Thanks

    Hi,
    You can use the below logic
    <htmlb:tableView id = "t1"
               visibleRowCount = "10"
               table = "<%= flights %>">
         <htmlb:tableViewColumns>
              <htmlb:tableViewColumn columnNamd = "carrid" />
              <htmlb:tableViewColumn columnNamd = "connid" />
              <htmlb:tableViewColumn columnNamd = "fldate" />
         </htmlb:tableViewColumns>
    </htmlb:tableView>
    define all the required columns using tableViewColumn tag.
    Regards,
    Ravi

  • How to hide rows?

    Hello folks,
    I just would like to know that how to hide rows except dbms_rls package? I mean, it has been said that I can hide rows to create views but lets said that I have got 200 students and each student can see only their rows in students table, in that scenerio I have to create 200 views, isn't it? I just would like to learn that how to hide rows with using views? Do you have any ideas?
    Note: I know dbms_rls package, except this solution I am tryin to find onather solution.
    Thanks a lot.

    Hi,
    Polat wrote:
    Hello folks,
    I just would like to know that how to hide rows except dbms_rls package? I mean, it has been said that I can hide rows to create views but lets said that I have got 200 students and each student can see only their rows in students table, in that scenerio I have to create 200 views, isn't it? No! As you realized, that's not practical.
    If every student is a separate Oracle user, the USER fucntion will return the name of the current user. A view definition can reference that function, like this:
    CREATE OR REPLACE VIEW view_x
    AS
    SELECT   *
    FROM    table_x
    WHERE   student_account  = USER;If you logged in to Oracle as POLAT, then the view will contain only rows where student_account='POLAT'.
    If you logged in to Oracle as SYSTEM, then the view will contain only rows where student_account='SYSTEM'.
    If students do not have thier own Oracle accounts, then they are probably authenitcated by some procedure in your package. That procedure can set a SYS_CONTEXT variable, or write data to a global temporary table, which you can then use instead of the USER function in view definitions.
    Note: I know dbms_rls package, except this solution I am tryin to find onather solution.Why can't you use dbms_rls, or why don't you want to use it? It's a very powerful tool, and not vey hard to use.
    I'm not saying there's never a good reason not to use dbms_rls; I'm just asking if you have one.
    I hope this answers your question.
    If not, give a specific example of what you want. Post CREATE TABLE and INSERT statements for some sample data for all tables involved. Identify 2 or 3 different students, and show what the contents of the view should be for each student, given the same sample data. If students do not log in to Oracle with their own usernames, then explain how you know which student is currently logged in.

  • How to hide the Columns and Views for Login user in SharePoint 2013

    Hi Friends,
    How to hide the Columns and Views for Login user in SharePoint 2013? Is it possible using OOB features? If not possible how can we hide the Columns and Views for Login user?
    Could you please help on this.
    Thanks,
    Tiru
    Tiru

    Hello Tirupal,
    There is no OOB way to do this.
    Please check this codeplex solution to achieve the same.
    https://sp2013columnpermission.codeplex.com/
    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

  • How to hide multiple columns in multicolumn listbox like as an excel sheet?

    Hello All,
    I have large amount of data that is to be displayed on multicolumn listbox. After displaying that, I want to hide or delete some columns from listbox in runtime.
    I know how to hide one column using active cell property node. But I want to hide multiple columns. I am using LabVIEW 2011. 
    Thanks in advance.
    Thanks & Regards,
    Manisha

    Thank you so much. 
    But I have total 12 columns and I don't want to delete columns serially. I want to delete inbetween columns, like in attached VI I want to delete column A & D only. 
    And in this user have to select it from frontpanel. I want this is to be done as in excel, like we select the entire column and either we hide it or delete it. One more thing I want to clear the data in multicolumn when I next time open my VI. How to do that?
    I hope am clear in explaining my problem.
    Thanks & Regards,
    Manisha
    Attachments:
    Delete Column.vi ‏10 KB

  • How to hide ,unhide columns  in ALV List

    Hi all,
    How to hide ,unhide columns  in ALV List..
    Plz guide me.
    Thanks in advance..
    Albert

    Hi Joseph,
    Check the following thread:
    Hide Unhide columns of ALV grid Report.
    Regards,
    Archana

  • How to insert rows & columns into a jTable???

    helloo there...
    How to insert rows & columns into a jtable???
    your reply is greatly appreciated....
    -=samer=-

    Yes!thanks...
    But what i want is how to set the number of rows and the number of columns...and i don't know how to setColumns and rows....any idea?
    the user will input number of rows and columns in a jtextfield....
    Please rply...

  • How to create  some columns dynamically in the report designer depending upon the input selection

    Post Author: ekta
    CA Forum: Crystal Reports
    how  to create  some columns dynamically in the report designer depending upon the input selection 
    how  export  this dynamic  report in (pdf , xls,doc and rtf format)
    report format is as below:
    Element Codes
    1
    16
    14
    11
    19
    10
    2
    3
    Employee nos.
    Employee Name
    Normal
    RDO
    WC
    Breveavement
    LWOP
    Sick
    Carers leave
    AL
    O/T 1.5
    O/T 2.0
    Total Hours
    000004
    PHAN , Hanh Huynh
    68.40
    7.60
    76.00
    000010
    I , Jungue
    68.40
    7.60
    2.00
    5.00
    76.00
    000022
    GARFINKEL , Hersch
    66.30
    7.60
    2.10
    76.00
    In the above report first column and the last columns are fixed and the other columns are dynamic depending upon the input selection:
    if input selection is Normal and RDO then only 2 columns w'd be created and the other 2 fixed columns.
    Can anybody help me how do I design such report....
    Thanks

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • How to show or Hide Generic Column in a regular report

    Hi All,
    I have created report based on "SQL query (pl/sql function body returning sql query). It returns columns based on some conditions. I have total 60 generic columns like (COL1,COL2....COL60) but it returns 18 or 20 columns based on my conditions, how can I hide the columns that I don't needed. My column heading is based on function return by ':' separated. My function returns number of columns also. Is there any we I can show only those columns which contains data. My report is exactly similar to the default "SQL query (pl/sql function body returning sql query). I didn't find any logic how they are doing this show and hide. I appreciate any ones help.
    Thanks,

    Hi there,
    Somehow you need to find out how many columns your dynamic select will return (by what you said it seems that your procedure returns this information). Then store that number in a hidden page item, say Pnn_COUNT.
    Then, for the 19th and 20th columns in the report add these conditions:
    Column 19: :Pnn_COUNT >= 19
    Column 20: :Pnn_COUNT >= 20
    I hope this helps.
    Luis

  • How to hide Actions Column in Table

    Hi All,
    I have a simple requirement: I am showing a table (items)
    - the "Actions" column (Column with Buttons to Edit and Delete a particualr row) must not be show -> no changes to the table are allowed (I need to hide/ disable this column)
    How can I hide this column od the table?
    I have found out that the field is called thtmlb_oca and that htere is a getter method get-thtmlb_oca. However, the method does not contain coding and I do not know how to HIDE this field/ column...
    Please help me here..
    Thanks, Johannes

    Hi Johannes,
    To remove the column completely,
    you need to comment this line in the method GET_TABLE_LINE_SAMPLE of the Table View Context node class.
    TYPES: BEGIN OF line,
    *  thtmlb_oca  type  crm_thtmlb_one_click_action.
      INCLUDE TYPE xxxx.
      TYPES:  END OF line.
    Disabling can be controlled in the method GET_OCA_T_TABLE of the same class by putting code to delete the button.
    LOOP AT  rt_actions ASSIGNING <fs_actions>.
          <fs_actions>-active  = abap_false.
        ENDLOOP.
    Regards,
    Masood Imrani S.

  • How to hide a column while exporting to excel?

    Hello,
    My client requires a crystal report(CR 2011) with Columns A,B,C,D, and E. After exporting this report to Excel, the excel file should contain only columns A,C,and E. I need to hide/suppress columns B and D ONLY during exporting to excel/printing. Is is possible? If yes, how?
    Thanks,
    P

    Hi Prasanna,
    Here's what you can do:
    1) Create a prompt with Yes/No values (Yes means show all columns, No means show limited columns)
    2) Create multiple sections. E.g:
    Page header a would have column headers for all columns
    Details a would have all fields
    Page header b would have columns A, C and E
    Details b would have fields A, C and E
    Use a conditional suppression logic for each of those sections:
    Logic for Page Header a would look like this:
    {?Prompt} = 'No'
    Logic for Page Header b would be:
    {?Prompt} = 'Yes'
    -Abhilash

  • How to hide a Column

    Gurus
    Using XSL FO how can i hide a column based upon a value in XML file.Can you please guide
    Regards
    Nitin

    Hi ,
    Pleaase check the conditional formatting section in the bi publisher user guide ... you will get the required solution.
    Regards
    Ratnesh P

  • How to hide blank columns in datagrid?

    Hi,
    I have a datagrid nicely populated with data.
    But I have some colums which are blank (the columns have a
    Header but the rest of its rows are blank).
    I want to hide these columns so that users can't see them.
    Note that the blank columns are not fixed. Sometimes it can
    be that a column is blank but at other times it can be filled.
    So I cannot use... "<... visible=false>
    I need to loop thru the columns and then hide the blank
    columns.
    Anyone has an idea how to code for this loop.
    Thx

    Well..from what i know, the datagrid supports the syntax to
    allow for you to specify the columns explicitly through the
    DataGridColumn. Done like this
    <mx:datagrid>
    <mx:columns>
    <mxdatagridcolumn datafield = "Column 1 name" ..>
    <mxdatagridcolumn datafield = "" ..>
    <mxdatagridcolumn datafield = "" ..>
    </mx:columns>
    </mx:datagrid>
    why dont you specify the columns you want using this. that
    way, if there is no data in the colums, that column just wont show.
    Hope i am understanding you right when you say hide blank
    columns

  • How to hide selection column from alv grid

    hi
    i want to hide selection columns form alv grid.. how can i do it.. Is there any fm for that?
    regards
    palak

    Hi,
    the ALV Grid Control allows you to directly hide key columns with NO_OUT (field KEY_SEL is not used).
    Field name:NO_OUT
    Comp. type:LVC_NOOUT
    Dtype(length):Char(1)
    SPACE, 'X'
    If you set this field, you hide the relevant column in the list. Nevertheless, the column is available in the field selection and can be interactively selected by the user as a display field. The ALV displays the contents of hidden fields on the detail screen for a row in the grid control.
    Regards,
    Neenu.
    Edited by: Neenu Jose on Oct 21, 2008 10:46 AM

Maybe you are looking for

  • Mac book pro won't detect moniter

    My macbook pro does not detect the Gateway outboard screen.  Screen is functioning, and says no signal detected.  Help?

  • My Drobo isn't being seen by Final Cut X

    Anyone else have this issue. I've got it hooked up via Firewire, but no luck. Final Cut X sees my other firewire drives, no problem. This is something of an issue since the Drobo is where I'm archiving everything. Not being able to see the drive from

  • Time & Date scrambled each time I sync with iTunes...

    Each time I connect my iPhone to iTunes, it crashes my date and time on the iPhone, whereas the date & time of the PC are OK (and so are they on the iPhone before I connect it to the PC). The funniest part - so to speak is that there is no logic in t

  • SkyDrive (not SkyDrive Pro) does not sync anymore

    Hello guys, Recently I noticed that the built-in SkyDrive in my Windows 8.1 stopped working. If I see my SkyDrive folder on File Explorer, it always shows the blue sync arrow icon regardless of many hours I waited for it to complete. Sometimes I open

  • Maintainence in Org management

    Hi all, This was the question put to me in an interview "how do I do maintainence in Organisation Management?" Can anyone give any input on this. Thanks