Conditionally hide subtotal row

I am creating a new analysis where I want to conditionally hide a subtotal row in a pivot table view. I have two columns - Is Consolidated and Property Name. Properties can be consolidated or not so I have Is Consolidated as an attribute (values True or False) and I add both to an pivot table view of an analysis. I made Is Consolidated so that it has subtotals after and then hide the Is Consolidated column so that the pivot table view looks like so:
Property A
Property B
Property C
True Total
Property D
Property E
False Total
Grand Total
However, I want the report to look like so (don't show the False Total line):
Property A
Property B
Property C
True Total
Property D
Property E
Grand Total
I found the following - http://gerardnico.com/wiki/dat/obiee/answer_xml but my situation is a little different and when I pull the equation out it never finds it so it doesn't ever apply the conditional formatting.
Is this possible?

950121 wrote:
I don't understand what you're proposing. With this implementation I get the error "Numbers of columns and their data types must be consistent across all criteria and Result Columns".Most detailed steps I could write :)
1) Login in OBIEE analytics.
2) Create a new analysis/answers using the subject area that the report should be built out of.
3) In the criteria tab for the Report 1, drag the following columns: Property Column, and Fact Metric.
4) For the fact metric column, click on FX and write the following formulae: FILTER(Metric using Flag = 'TRUE')
5) Create all the filters as you need for this based on the prompts provided on the dashboard page
Time to create second report to display the subtotal:
6) Click on combine with similar request and select the same subject area and this will create second line of reports below the result columns.
7) The concept here is, you can do an union of reports as long as all the reports have same set of columns and matching datatype's.
8) Now select any column from subject area that is of type character, and obviously the second column which is the metric.
9) Click on Fx on the first column and change it to 'Total' to hardcode it. Change the fx of the second column to FILTER(METRIC USING FLAG = 'TRUE')
Time to create third report:
10) Click on edit, and click on Add new criteria to add third line of report in the result columns set.
11) Now repeat the steps in the first report, and change the metric to filter by 'FALSE' instead of true.
12) Apply the same set of prompts across 2 and 3 reports also.
Apply the formatting on the result columns per your requirement.
Thanks.

Similar Messages

  • HFR Conditionally Hide Row

    Is there a way in HFR 9.3.1 to conditionally hide a row. I know I can suprress the zero values but I want the row hidden when it is zero or missing. Seems I ran across this once but cannot find a way to do it now.
    Details:
    I have 3 scenarios (Budget, Target, and Prior Year) that I compare to Actual data like this:
    Actual Total 100
    Target Total 75
    Var 25
    Var % 33
    The issue is many members do not have a Target value. So when the user selects Target I have 3 useless lines. I would like to hide the lines when Target or Budget is chosen for particular members.

    Select the row you wish to hide, then in the property sheet (right hand side, hit F4 if it's not showing)
    Then select the checkbox Advanced Options in the Suppression section.
    Hit the Setup button next, here you can suppress: not sure how best to do it but you could do:
    - if member name matches or
    - row contains Missing etc
    Cheers, Iain

  • How to hide a row in BI Publisher using conditional formatting

    Hi,
    I am using BI Publisher 11.1.1.5.0.
    I need to hide entire row based on the condition (if sal > 0 then hide entire row), please can you help on how  can I achieve this?
    thanks

    Hi,
    I've found the solution in
    Report Designer's Guide for Oracle Business Intelligence Publisher Release 11g (11.1.1) Part No. E13881-02 - Section Conditional Formatting.
    thanks

  • SQL Query (updateable report) Region - Conditionally Hide and Set Values

    SQL Query (updateable report) Region - Conditionally Hide and Set Values
    Outline of requirement :-
    Master / Detail page with Detail updated on same page using SQL Query (updateable report).
    The detail region has the following source
    SELECT item_id,
           contract_id,
           CASE WHEN hardware_id IS NOT NULL THEN
                   'HA'
                WHEN backup_dev_id IS NOT NULL THEN
                   'BD'
                WHEN hardware_os_id IS NOT NULL THEN
                   'HS'
           END item_type,
           hardware_id,
           backup_dev_id,
           hardware_os_id
    FROM   "#OWNER#".support_items
    WHERE  contract_id = :P26_CONTRACT_IDThe table support_items implements arced relationships and has the following columns
    CREATE TABLE SUPPORT_ITEMS
      ITEM_ID         NUMBER                        NOT NULL,
      CONTRACT_ID     NUMBER                        NOT NULL,
      HARDWARE_ID     NUMBER,
      BACKUP_DEV_ID   NUMBER,
      HARDWARE_OS_ID  NUMBER
    )A check type constaint on support_items ensures that only one of the fk's is present.
          (    hardware_id    IS NOT NULL
           AND backup_dev_id  IS NULL
           AND hardware_os_id IS NULL
    OR    (    hardware_id    IS NULL
           AND backup_dev_id  IS NOT NULL
           AND hardware_os_id IS NULL
    OR    (    hardware_id    IS NULL
           AND backup_dev_id  IS NULL
           AND hardware_os_id IS NOT NULL
          )    Hardware_Id is a FK to Hardware_Assets
    Backup_dev_id is a FK to Backup_Devices
    Hardware_os_id is a FK to Hardware_op_systems
    The Tabular Form Element based on item_type column of SQL query is Displayed As Select List (based on LOV) referencing a named list of values which have the following properties
    Display Value     Return Value
    Hardware Asset    HA
    Backup Device     BD
    Computer System   HSThe Tabular Form Elements for the report attributes for hardware_id, backup_dev_id and hardware_os_id are all Displayed As Select List (Based on LOV).
    What I want to do is only display the Select List for the FK depending on the value of the Select List on Item Type, e.g.
    Item_Type is 'HA' then display Select List for hardware_id, do not display and set to NULL the Select Lists for backup_dev_id and hardware_os_id.
    Item_Type is 'BB' then display Select List for backup_dev_id, do not display and set to NULL the Select Lists for hardware_id and hardware_os_id.
    Item_Type is 'HS' then display Select List for hardware_os_id, do not display and set to NULL the Select Lists backup_dev_id and hardware_id.
    There are properties on elements to conditionally display it but how do we reference the values of the SQL query Updateable region? they are not given a page item name?
    Also on the Tabular For Elements there is an Edit tick against a report item - however when you go to the Column Attributes there is not a property with which you can control the Edit setting.
    What's the best way of implementing this requirement in APEX 3.1?
    Thanks.

    >
    Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "user13515136".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    I have a multi-row region that displays values and allows entries in a number of fields.Provide exact details of how this has been implemented. (An example on apex.oracle.com is always a good way to do this.)
    I should like the fields to be conditional in that they do not permit entry, but still display, if certain conditions apply (e.g. older rows greyed out). Can this be done? Almost anything can be done, often in multiple ways. Which are appropriate may be dependent on a particular implementation, the skills available to implement it, and the effort you're willing to expend on it. Hence it's necessary to provide full details of what you've done so far...

  • Hide Blank Rows in a Pivot Table in Outline Form in Excel 2010

    In Excel 2010 Pivot Tables, using the Outline Format and Repeat Item Labels, is it possible to hide the rows with no data?  Please see atch.
    Doug in York PA
    Douglas R. Eckert

    Hi,
    If you want to hide these subtotal rows, you have to use the Tabular forum, the Tabular layout is very similar to Outline except that you will not 
    have subtotals at the top of every group.
    1.Right-click an item in the pivot table field, and click Field Settings
    2.In the Field Settings dialog box, click the Layout & Print tab.
    3.Check the 'Show item labels form in tabular form’ 
    check box.
    4.Click OK
    Then your pivot table layout should look like the image below:
    Let us know if that’s what you wanted.
    Regards,
    Melon Chen
    TechNet Community Support

  • PDL-Customer Statements (Hide certain row)

    Hi all experts,
    I have many fields row  in detail. Can i hide certain row? with the formula & condition, have any formual?
    e.g. hide the field_123 with the word "JE"
    Thanks.
    Danny
    Edited by: Danny Gan on Nov 13, 2008 10:52 AM

    This might help you
    https://websmp208.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000107032008E
    https://websmp208.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000866242007E
    Pls choose apt forum to post message to get quicker response

  • Field should not display in the subtotal row in ALV report after sorting .

    we have a requirement, after sorting and subtotaling, the output in ALV is -
    vbeln        amount1  amount2  amount3
    123           11              12            13
    123           12             13             14
    123           23             25             27 
    133           11              12            13
    133           12             13             14
    133           23             25             27
    Now the customer wants the ALV outpput in this fashion -
    123           11              12            13
    123           12             13             14
                     23             25             27    --->123 (vbeln) should not come in subtotaling row
    133           11              12            13
    133           12             13             14
                      23             25             27--->133(vbeln) should not come in subtotaling row

    Hi,
    if it helps you could create a hierachy. In this way you can define the field catalog for the lines and for the subtotal columns. The only thing is that you would always show the subtotal rows.
    You have references of hierachy alvs in
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c060fcb4-2c62-2b10-d2b2-f32407a5cc6f
    ALV Hierarchy
    alv hierarchy
    In this case it also sorts
    Sorting for ALV hierarchy
    I hope it helps.
    Edited by: Oscar Pecharroman on Aug 2, 2010 1:13 PM

  • Hide multiple rows in a dynamic table based on the row value.

    Hi,
    I need to hide multiple rows in a dynamic table based on the specific value of that row.
    I cant find the right expression to do that.
    please help

    Go to the Row Properties, and in the Visibility tab, you have "Show or hide based on an expression". You can use this to write an expression that resolves to true if the row should be hidden, false otherwise.
    Additionally, in the Matrix properties you should take a look at the filters section, perhaps you can achieve what you wish to achieve through there by removing the unnecessary rows instead of just hiding them.
    It's only so much I can help you with the limited information. If you require further help, please provide us with more information such as what data are you displaying, what's the criteria to hiding rows, etc...
    Regards
    Andrew Borg Cardona

  • 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

  • SSRS- Hide Empty Rows

    Hi,
    I am having a difficult time deleting empty rows in a table. I used HideDuplicates under properties to hide any of the duplicated data but now it is leaving me an empty row in the table. I tried to use the following codes but none of them seemed to work:
    =Iif(Previous(Fields!Apps.Value) = Fields!Apps.Value, True, False)
    =IIF(fields!Apps.value IS NOTHING, True, False)
    =isnothing(fields!Apps.value)
    =if(Fields!Apps.Value = "",
    true, false). 
    =IIF(IsNothing(Fields!Apps.Value),True,False)
    =iif(Fields!Apps.IsMissing,True,False) 
    Might anyone know another code I might use to delete the empty rows?
    Thank you in advance!

    What you are looking for is probably the Visibility option not the HideDuplicates. You can right click on the row and choose
    Row Visibility. Select "Show or hide based on an expression" and put in the expression that resolves to true to hide the row, and false to show it.
    The HideDuplicates field that you are using is there to hide duplicating text and not entire rows. For example if you have:
    Value1
    5
    Value1
    15
    Value1
    20
    Value2
    10
    You would then get:
    Value1
    5
    15
    20
    Value2
    10
    I hope that helped.
    Regards,
    Andrew.

  • How do I Hide a Row in a Table in a Pages document?

    How do I hide a row or column? There is a command to "unhide" but not to hide. Because I cannot hide anything, the unhide command is greyed out - what did Apple do with the Hide Rows command for Tables in Pages? Hide it? lol!
    It does not show up in a search of Help - in fact, there isn't even a mention of "unhide" despite there being a command for it!
    Why do I want to hide a row? Because if I have an 8 row table in a Pages Template and I only need six of them, deleting the other two breaks all the formulae and inserts #Ref! errors across each formula, rather than automatically altering cell references as other spreadsheets do. In Numbers hiding the cells makes them disappear and does not break the formulae, but this behaviour seems to be missing from Pages.
    Or is it me that has missed somethng?

    I thought that the descriptions given in the Help are clear.
    The ADDRESS function constructs a cell address string from separate row, column, and table identifiers.
    ADDRESS(row, column, [type], [style], [table])
    row: The row number of the address.
    column: The column number of the address.
    I dropped the comments about type, style and table as I don't use them here.
    =IF(ISBLANK(INDIRECT(ADDRESS(ROW(),1))),"",INDIRECT(ADDRESS(ROW(),2))*INDIRECT(A DDRESS(ROW(),3)))
    INDIRECT(ADDRESS(ROW(),1))
    returns the contents of the cell whose row is the same than the one containing the formula \[the row number is given by ROW()] and whose column is the 1st one)
    INDIRECT(ADDRESS(ROW(),2))
    returns the contents of the cell whose row is the same than the one containing the formula \[the row number is given by ROW()] and whose column is the 2nd one)
    INDIRECT(ADDRESS(ROW(),3))
    returns the contents of the cell whose row is the same than the one containing the formula \[the row number is given by ROW()] and whose column is the 3rd one)
    In short, when the formula is applied in row 9 it behaves like:
    =IF(ISBLANK(A9),"",B9*C9)
    The long syntax is required to be able to enter it only once in the header cell as described in the Help and in the PDF User Guide in a chapter entitled "Applying a Formula Once to Cells in a Column or Row".
    As we want to use such a formula, it would be odd to destroy its ability using a different formula in a standard bottom row.
    More, in a footer row, we may use shorter formulas than in other rows.
    In a standard row 10 we would have to write =SUM(D2:D9)
    in a footer row we enter only =SUM(D) which add the contents of every standard cells of the column D.
    This feature is also described in the named resources.
    Yvan KOENIG (from FRANCE vendredi 3 octobre 2008 18:21:13)

  • Hide a row in the table.

    Hi,
      In my application, there is a table and an input form. I have bound the table and input fields in the form to the same context node. Now when I am validating the form, the input fields values are getting showed in the table.
      I have to show the table row, only when all the validations are correct and the user got saved in the back end.
    Is this correct design?
    Since only one such column is getting showed in the row, can I go with an option to hide the row and still show the values in the input form.
    Edited by: Tony on Feb 20, 2009 5:06 PM

    Hi Tony,
    I guess the way you are following will always give you wrong result. Reason being the same attribute and node binded to both input field and Table. This will behave as the way have told.. That means as soon as some value will be entered in th inpu field the table will get populated with the same attribute value.
    I guess the reason is quite simple to understand. If the same attribute is binded to both UI elements (InputFiled and Table), then as soon as any of these value will be updated, same value will be shown in the other UI element.
    To fix this issue you can follow this approach:
    1) Create separate node or a attribute for the inputfield. And bind this attribute to the Inputfiled UI element.
    2) Keep the binding of the table as it is.
    3) As soon as user enter some value in the inout field and hit enter, fire a function or validation check which you were talking about. There is event for onEnter in inputfield. You can use the same.
    4) If the validation succeds then save the value in the backend and create a new element of the table and copy the value of the attribute of input field to the Table attribute whichis binded to Table.
    Following this way will definitely solve you issue. If you require any further help please let me know. However you can easily get the code for creation of the new element of the node which is binded to table. Even then if you require any help, please feel free to revert back.
    Hope this helps you!!
    Thanks and Regards
    Pravesh

  • Hide duplicate row and analytic functions

    Hi all,
    I have to count how many customers have two particular product on the same area.
    Table cols are:
    AREA
    PRODUCT_CODE (PK)
    CUSTOMER_ID (PK)
    QTA
    The query is:
    select distinct area, count(customer_id) over(PARTITION BY area)
    from all_products
    where product_code in ('BC01007', 'BC01004')
    group by area, customer_id
    having ( sum(decode(FPP.PRODOTTO_CODE,'BC01007',qta,0)) ) > 0)
    and ( sum(decode(FPP.PRODOTTO_CODE,'BC01004',qta,0)) ) > 0);
    In SQL*PLUS works fine, but in Oracle Discoverer I can't get distinct results also if I chek "Hide duplicate rows" in Table Layout .
    Anybody have another way to get distinct results for analytic function results?
    Thanks in advance,
    Giuseppe

    The query in Disco is exactly that I've post before.
    Results are there:
    AREA.........................................C1
    01704 - AREA VR NORD..............3
    01704 - AREA VR NORD..............3
    01704 - AREA VR NORD..............3
    01705 - AREA VR SUD.................1
    02702 - AREA EMILIA NORD........1
    If I check "hide duplicate row" in layout option results didn't change.
    If I add distinct clause manually in SQL*PLUS the query become:
    SELECT distinct o141151.AREA as E141152,COUNT(o141151.CUSTOMER_ID) OVER(PARTITION BY o141151.AREA ) as C_1
    FROM BPN.ALL_PRODUCTS o141151
    WHERE (o141151.PRODUCT_CODE IN ('BC01006','BC01007','BC01004'))
    GROUP BY o141151.AREA,o141151.CUSTOMER_ID
    HAVING (( SUM(DECODE(o141151.PRODUCT_CODE,'BC01006',1,0)) ) > 0 AND ( SUM(DECODE(o141151.PRODUCT_CODE,'BC01004',1,0)) ) > 0)
    and the results are not duplicate.
    AREA.........................................C1
    01704 - AREA VR NORD..............3
    01705 - AREA VR SUD.................1
    02702 - AREA EMILIA NORD........1
    There is any other way to force distinct clause in Discoverer?
    Thank you
    Giuseppe

  • Hide the row structure in Bex query

    Hi Experts,
    i have a query regarding display of report in Bex Analyzer.  I have two structures in report one in Row & other in Column. In row  have only one field against which there are two columns having figures
    my query is as follows:
    Is this possible that if I hide the filed in Row ie, if i hide the only field from row then the column fields will always displayed or they also get hide.
    is there any possible way to do so, ie if i want to display the column fields / structure only, even after hiding the row field
    thanks in advance
    neha

    Hi,
    In your scenario, hiding the row will cause the columns to also disappear in the output. Can you explain why you want to hide the row?
    Regards,
    Suhas

  • Conditionally Hide/Display fields in a region

    How can I conditionally hide/display fields in a region. Based on a user selection whether they want to 'Enter' or 'Select', I want to dispaly the appropriate field .i.e. if the user selects 'Enter' then I want to display a Text field and if they opt for 'Select', then I want to display a Select list.
    Thanks in Advance.
    Regards,
    Hilal

    Hi Halil,
    I've been trying to reproduce what the linked site does.
    Here's my solution:
    1 - Add all items to the page whether or not they are going to be displayed
    2 - Ensure that all items that could be shown/hidden are on lines on their own (ie, set New Line to Yes)
    3 - In the region's Region Footer (or in a new HTML region in the Before Footer position), add in this bit of javascript:
    &lt;script type="text/javascript"&gt;
    html_HideItemRow('NameOfFieldToHide');
    -- repeat for each item to be hidden when the page first loads
    &lt;/script&gt;
    4 - On the radio button's definition, add the following in the HTML Form Element Attributes setting:
    onclick="html_ToggleItemRow('NameOfDisplayedItem');html_ToggleItemRow('NameOfHiddenItem');"
    Now when the page is loaded, one field is automatically hidden then clicking any of the radio button options will toggle the hidden/displayed fields and their labels.
    As stated before, if you do a View Source on the linked application's page, you will see either more methods that are used to show/hide items/regions, but the above should be a starting point for you.
    Regards
    Andy

Maybe you are looking for