How to hide zero rows from a structure

Hi
I have a month structue in rows which consists of 36 months. In the keyfigure coulmn also I have a structure with 6 keyfigures. In normal circumstances there will be values only upto 12 or 15 months. I want to hide the remaning rows. Is it possible.
I created a counter on one important keyfigure so that when value>0 it is 1 otherwise 0. I call this counter. Then I tried to create a condition to show only the 1. But while creating the condition after the keyfigure a column for month with the different elements of structure has to be selected. And of course the condition does not work.
Any suggestions how to hide the zero rows of structure
Ram

Right click on the key figure structure and characterstic structure select 'Properties' and check the option 'Also use Zero Suppression for Structure elements'.
Also from the query properties select the 2nd tab display and select the option Suppression "Active All Values = 0" and from Effect on Select "Rows and Columns".
Thanks.

Similar Messages

  • How to delete zero rows from a matrix?

    Hi,
    I have a 2D datamatrix and there are some zero rows. My original program should recognize all zero rows and delete them. How to do that?
    I have tried with the Delete From Array function but no success. I also tried with the OpenG array functions but...no.
    I attached a vi which simulates my problem. There is one zero row and I want to delete it and have a matrix without zero rows.
    Kudos for any good help!
    Solved!
    Go to Solution.
    Attachments:
    DeleteZeroRows.vi ‏19 KB

    Christian_M wrote:
    The idea was to give a hint that people try using their brain....
    Stilll, I think your code is fundamentally flawed and will thus lead the student into a deep swamp.
    Have you actually tried it with multiple rows of zeroes?
    Since "delete from array" rearranges the array indices with each deletion, the code will break if there is more than one row to be deleted. For example if a row is already deleted and it needs to also delete the last row, it would try to delete a row that no longer exists. If a later row still exists, it will delete the wrong row.
    Also, since NaN gets coerced to a valid index (2147483647), it's probably not such a good idea. "-1" would be a better choice. (Well, it's an unlikely implossible possibility in LabVIEW 32 bit, but still....)
    I also don't understand your logic with "search array". You need to test all elements for zero.
    LabVIEW Champion . Do more with less code and in less time .

  • Hide zero rows

    Hi all,
    Need to hide all rows from 114 to say 500 where there the sum is zero in column D.
    Note any blank rows should remain unhidden.
    Thanks,
     - Mike

    Hi
    Try this...
    Sub HideRows()
    Dim lst As Long, i As Long
    On Error Resume Next
    Application.ScreenUpdating = False
    lst = Cells(Rows.Count, "D").End(xlUp).Row
    For i = 114 To lst  'lst is your last row with data, you can change that for 500
     If Cells(i, 4).Value <> "" And Cells(i, 4).Value = 0 Then
        Cells(i, 1).EntireRow.Hidden = True
          End If
          Next i
          Application.ScreenUpdating = True
    End Sub
    'This macro is to unhide all the hidden rows
    Sub UnHide_Rows()
        Cells.EntireRow.Hidden = False
    End Sub
    Cimjet

  • How to delete multiple rows from ADF table

    How to delete multiple rows from ADF table

    Hi,
    best practices when deleting multiple rows is to do this on the business service, not the view layer for performance reasons. When you selected the rows to delete and press submit, then in a managed bean you access thetable instance (put a reference to a managed bean from the table "binding" property") and call getSeletedRowKeys. In JDeveloper 11g, ADF Faces returns the RowKeySet as a Set of List, where each list conatins the server side row key (e.g. oracle.jbo.Key) if you use ADF BC. Then you create a List (ArrayList) with this keys in it and call a method exposed on the business service (through a method activity in ADF) and pass the list as an argument. On the server side you then access the View Object that holds the data and find the row to delte by the keys in the list
    Example 134 here: http://blogs.oracle.com/smuenchadf/examples/#134 provides you with the code
    Frank

  • How to Hide some Rows in a List view Web Part using JavaScript ?

    How to Hide some Rows in a List view Web Part using JavaScript ?

     Here is the code that worked for me:
    var Elements = document.querySelectorAll('div[id=WebPartWPQ3] table[class=ms-listviewtable]>tbody tr .ms-vb-lastCell.ms-cellstyle.ms-vb2')
    for(var i=0, n = Elements.length; i < n; i++)
     if(Elements[i].innerHTML=="India")
    Elements[i].parentNode.setAttribute("style","display:none")
    WebPartWPQ3 -> ID of webpart Div
    ms-listviewtable -> class name of table in Div
    ms-vb-lastCell.ms-cellstyle.ms-vb2 -> classname of td to get text

  • How to hide a field from table maintenance view?

    Hi,
    How to hide a field from table maintenance view? 
    The field is used for data created date. I need to hide it from display.
    Thanks

    Chk this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/66/33f52010dd11d6999300508b5d5211/frameset.htm
    Maintenance Attributes
    You can assign a maintenance attribute P to individual fields in the maintenance view definition in the Dictionary (SE11). It can be  H (hidden)
    H (hidden)
    A field flagged H is not displayed on the screen. This field must also be filled in the background by a routine at an event.
    The system writes R and H fields to the database like all other fields when a new data record is saved.

  • How do i get data from a structure using join?

    hi,
    what is the actual use of a structure.?
    my problem is :
    KUAGV is an existing STRUCTURE. it has got one fields each which links to MARA, AND VBKD tables. i want to fetch all related information from KUAGV, mara, vbkd . which is the better way : using joins or views or anything else? how do i
    get data from a structure using join?

    structure temporarily holds  any data passed to it dynamically throughout the runtime but doesnot store it permanently. so
    a structure cannot be included in a join.so instead of incuding structure KUAGV's field in a join 
    search the transparent table in which same field are present and  use it in join.
    A structure if created in DDIC(Data Dictionary) is a global DATA STRUCTURE which is used to group related information, for example you would group all the details of your bank account into a structure BANK_ACCOUNT that contains fields like account_Id, account_holder_name etc.
    If you create a structure in your program then it is local to your program. So you use this structure to create data holders of this DATA TYPE to hold data in your program.
    Edited by: suja thomas on Feb 11, 2008 6:24 AM
    Edited by: suja thomas on Feb 11, 2008 6:31 AM

  • How to update duplicate row from table

    Hi,
    how to update duplicate row from table?
    First to find duplicate row then update duplicate row with no to that duplicate row in oracle.
    can you give me suggestion on it?
    Thanks in advance.
    your early response is appreciated...

    In order to find a duplicate row, see:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1224636375004
    (or search this forum, your question has been asked before)
    In order to update it, just create and use an Oracle sequence, have it start and increment at a value that doesn't exist in your table.
    If that doesn't get you going, post some CREATE TABLE + INSERT INTO statements, and the results you want from them, in other words: a complete testcase.

  • How To Delete a Row From a TableView !!!!

    Hi,
    Does any know how to delete a row from a table view model.
    I have a TableViewModel being displayed, when the user select the particular row and click delete i want that particular row to be deleted.
    Any Suggestions How.
    Thanks,
    Emmanuel.

    If u want to delete single row, then set the property of TableView - selectionMode="SINGLESELECT". Select the radio button and click on delete button. In the main program, you can get the row value like...
    public void onDeleteButtonClicked(Event event) throws PageException {
    TableView table = (TableView) this.getComponentByName ("idTableView");
    DefaultTableViewModel dmodel = myBean.beanModel;
    String pid = "", row_selected;
    // Get the first visible row
    int firstVisibleRow = table.getVisibleFirstRow();
    // Get the last visible row
    int lastVisibleRow = table.getVisibleLastRow();
    for (int i = firstVisibleRow; i <= lastVisibleRow; i++) {
    if (table.isRowSelected(i)) {
      row_selected = i;
      pid = dmodel.getValueAt(i, 1).toString();
    "i" will give you the row no, pid has the value of the row at first column.
    Hope this helps.
    Thanks,
    Praveen

  • How to "discard" a row from a view

    It seems to me like a simple thing, but I can't find an answer:
    I want to programmatically remove a row from an executed view's rowset, but I don't want the underlying entities removed?
    [I don't want any pending updates to the entities affected either. It's basically a UI thing - the user does something and I want to make the current row vanish.  I don't need or want to re-execute or alter the database as a result of this particular removal.]
    Anyone know of a vo.removeRowWithoutAffectingEntities method?
    Thanks,
    Mike.

    Found an old thread myself.
    How to remove a row from a rowset
    Will have to give this "hack" a try, I guess. (Sung, has this API been introduced into an unreleased version yet?)
    I had already tried overriding the updateable-entities' remove methods (which are called from row.remove()), but it seems that the view-row hangs around if the entities aren't actually removed. Found some "removeEntityReferences (i.e. set them to null)" method on a QueryCollection and was wondering if calling that followed by a row.remove() might do the trick, but the method's protected anyway. Might still see if I can call it somehow. Any comments on the viability of this, Sung? (Given that the previous work-around was "uncharted territory"....)
    Anyway, I guess I'll give the original work-around a shot. (Or make application non-ideally commit and requery!)
    Mike.

  • How to compare two rows from two table with different data

    how to compare two rows from two table with different data
    e.g.
    Table 1
    ID   DESC
    1     aaa
    2     bbb
    3     ccc
    Table 2
    ID   DESC
    1     aaa
    2     xxx
    3     ccc
    Result
    2

    Create
    table tab1(ID
    int ,DE char(10))
    Create
    table tab2(ID
    int ,DE char(10))
    Insert
    into tab1 Values
    (1,'aaa')
    Insert
    into tab1  Values
    (2,'bbb')
    Insert
    into tab1 Values(3,'ccc')
    Insert
    into tab1 Values(4,'dfe')
    Insert
    into tab2 Values
    (1,'aaa')
    Insert
    into tab2  Values
    (2,'xx')
    Insert
    into tab2 Values(3,'ccc')
    Insert
    into tab2 Values(6,'wdr')
    SELECT 
    tab1.ID,tab2.ID
    As T2 from tab1
    FULL
    join tab2 on tab1.ID
    = tab2.ID  
    WHERE
    BINARY_CHECKSUM(tab1.ID,tab1.DE)
    <> BINARY_CHECKSUM(tab2.ID,tab2.DE)
    OR tab1.ID
    IS NULL
    OR 
    tab2.ID IS
    NULL
    ID column considered as a primary Key
    Apart from different record,Above query populate missing record in both tables.
    Result Set
    ID ID 
    2  2
    4 NULL
    NULL 6
    ganeshk

  • How i will retrive rows from object type

    test is object type(varchar2,varchar2)
    test1 is a object derived from test
    test1(varchar2,varchar2,test);
    how i will retrive rows from test1.
    declare
    type recf is ref cursor;
    v_tab test1 := test1('a','b',test('c','d'));
    rec recf;
    begin
    open rec for
    select * from table(cast(v_tab as test1));
    dbms_output.put_line('the rows are'||rec.test1.test11);
    end;
    when i compile this it return
    ERROR at line 7:
    ORA-06550: line 7, column 35:
    PL/SQL: ORA-22907: invalid CAST to a type that is not a nested table or VARRAY
    ORA-06550: line 7, column 1:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 8, column 48:
    PLS-00487: Invalid reference to variable 'REC'
    ORA-06550: line 8, column 1:
    PL/SQL: Statement ignored
    error.

    hi ur previous example really helping me but please help me in this current senario,
    PROCEDURE reserveNumbers (
         TheNumberRange IN NumberRange,
         UserID IN userid,
         ReturnStatus OUT CallStatus ); which is in P_Numbermgr_Api package.
    here NumberRange is a object
    TYPE NumberRange IS OBJECT (
         StartNumber               VARCHAR2(40),
         EndNumber               VARCHAR2(40),
         NumberAttributes          NumberAttr)
    NumberAttributes field based on NumberAttr object
    TYPE NumberAttr IS OBJECT (
         NumberType          VARCHAR2(15),
         CountryCode          VARCHAR2(10),
         CityCode      VARCHAR2(3))
    i write a package within package i am calling P_Numbermgr_Api.reserveNumbers:
    CREATE or replace TYPE My_numberrange IS TABLE OF numberrange;
    CREATE OR REPLACE PACKAGE numberrange_wrapper AS
    TYPE cursor_type IS REF CURSOR;
    TYPE cursor_type1 IS REF CURSOR;
    TYPE cursor_type2 IS REF CURSOR;
    v_userid number;
    PROCEDURE Getnumberrange (userid IN number,
    p_recordset OUT numberrange_wrapper.cursor_type);
    END numberrange_wrapper;
    within package body i write
    CREATE OR REPLACE PACKAGE body numberrange_wrapper AS
    PROCEDURE Getnumberrange (userid IN number,p_recordset IN OUT numberrange_wrapper.cursor_type)
    is
    v_tab My_numberrange := My_numberrange();
    refc numberrange_wrapper.cursor_type2;
    BEGIN
    numberrange_wrapper.v_userid:= userid;
    OPEN p_recordset FOR
    SELECT
         * FROM
         Table(Cast(v_tab As My_numberrange));
    P_Numbermgr_Api.reserveNumbers (My_numberrange,v_userid,p_recordset);
    END Getnumberrange;
    end numberrange_wrapper;
    it return
    PLS-00330: invalid use of type name or subtype name
    please help me how i will solve this problem

  • How to select multiple rows from List Of Values

    Hello,
    I use ADF 11g to create my list of values (LOV). I want to select multiple rows from it. but i can't.
    so how i can select many rows to set them in my adf table.
    Thank in advance

    Hi,
    LOV is map to an attribute in the viewObject so it will return only one value or more values from selected row. You can't select multiple rows from LOV.
    But you can do this by using popup which you can select multiple rows and insert the selected rows to another table.
    This blog post explain how to achieve this :
    http://husaindalal.blogspot.com/2009/11/search-from-popup-and-add-to-new-table.html#comments
    Sameh Nassar

  • How to get selected row from a non-bind ADF table

    Hi,
    I have an ADF table that is based on a collectionModel built programmatically. The collectionModel is this:
    model = new SortableModel(new ArrayList<ArrayList>());
    Hence, it is not a binding table. My question is how to get the selectedRows from a non-bind table.
    I am used to building binding ADF table and I know we can get it from voiterator.getCurrentRow, since the selectionListener is set to the binding....collectionModel.makeCurrent
    <af:table value="#{bindings.ItasLookupTypesVO1.collectionModel}"
    selectedRowKeys="#{bindings.ItasLookupTypesVO1.collectionModel.selectedRow}"
    selectionListener="#{bindings.ItasLookupTypesVO1.collectionModel.makeCurrent}"
    </af:table>
    I am thinking maybe I need to write my own selectionListener, but need more advice/ideas of what's the codes in the customer selection Listener to get it from my SortableModel.
    Please help.
    Thanks
    -Mina

    I'm not sure if this works in your case, but check out the selection listener I write in this blog http://wp.me/pcBZk-eu
    You should use the selection event and check the added set. This should give you access to the selected row.
    Timo

  • How to hide a list from SharePoint tree view pro grammatically.

    Hi,
    I have enabled tree view for a SharePoint 2013 site pro grammatically. 
    I want hide some specific lists from that tree view like Documents, Workflow, Task List, Calender
    Lists which are created default when we create a site.
    How could i do that?

    I know how to hide Quick launch and Enable Tree view with properties in C#.
    My question is 
    hide some specific lists from that tree view like Documents,
    Workflow, Task List, Calender
    Lists which are created default when we create a site.

Maybe you are looking for

  • Data not getting displayed in ALV grid when run in background

    Hello experts! Could anyone help me out please? I need to display an ALV grid in the background. My requirements are as follows: I first display an ALV grid in the foreground based on some input parameters. The user selects a few records for updating

  • Iphone 5s - slider wont slide when receiving call.  What do I do???

    Hi - Both my mom and I have 2 week old iPhone 5s'. Both of us have had issues where it is often difficult to answer incoming calls.  Its as if the slider is broken.  I can often get the slider to slide, thus answering the call, right before it goes t

  • Macbook pro 15" vs Macbook pro retina 15"

    I have recently bought macbook pro retina 15" it has yet to arrive it is still in the processing stage. I prefer the retina slightly more than the traditional version, however upon reading the image retention issues of the macbook pro retina after I

  • Is repatch ncy after imp of previous version databse?

    I'm upgrading to a 64 bit version. I have a new test env installation of 10.2.0.4. After I import my prod database 32 bit version 10.2.0.1, do I need to repatch? Is there anything else I need to do concerning going from 32 bit to 64 bit?

  • Reentrant execution problem

    When I select reentrant execution in a sub vi, it seems to want to be turned on manually. When I create an executable the reentrant vi doesen't seem to run. Any ideas? Thanks, Tom