Hide a column conditionally to parameter value

Hi experts,
I'm new to Discoverer and I'm working with Disco 10.1.2.3.
I need to hide a column conditionally to a parameter value, and I'm turning around for time.
I can't find how to do this.
I have tried few things with Conditional Formatting but unsuccessfully.
If someone could give me a clue....
Thanks in advance
Brice

Thanks Rod for your answer.
I'm really sad to know that we can't hide a column in Discoverer, which for me seems to be a basic thing for such a tool.
A Decode could be a good idea but the fields I would like to show/hide are part of hierarchies,
and after few try I have seen that if I applied function on a field which is part of a hierarchy,
Disco doesn't show it as a Hierarchy (I cannot Drill).
That's why I was searching to put my 3 hierarchies fields and then hide 2 of them conditionally to a parameter value.
If someone have an idea ...
Thanks again Rod,
Brice

Similar Messages

  • SSRS Matrix report to show or hide year column based on parameter value "Date" selected.

    Hey experts!
    I have a requirement an ssrs matrix report should display columns (year/s) based on parameter value (date/s). 
    My Dataset fileds are: Product, Year_name, Month_name, Date
    Currently my report output looks like this-
    Param Date: 2013-08-01 00:00:0.000
    Product +Calender2011      +Calender2012     -Calender 2013........                        +Calender2014
                             Total
                      Total Jan13  Feb 13  Mar13..  Dec13   Total           Total
    Abc                      100
                        220
    10      20         30.......  20       250              400
    Xyz 110
    200 50      80         40.......  30       450              600
    My requirement:  if I'm selecting Date parameter value as '2013-xx-xx' I should only able to see Year column 'Calender2013' and rest of the years should hide. Similarly If I'm selecting Date parameter value as '2014-xx-xx' I should only able to
    see Year column 'Calender2014' .
    Appreciate your kindly help. 
    Afan

    Hi Afan,
    According to your description, you want to only show the selected year on your report, right?
    In this case, you need to get the year from the date parameter using the expression below
    =Year(Parameters!Date.Value)
    And then use the expression below to get the year from Year_Name field.
    =Right(Fields!Year_Name.Value,4)
    Then add a filter to the dataset to filter the data like below
    Expression:=Year(Parameters!Date.Value)
    Operator:=
    Value:=Right(Fields!Year_Name.Value,4)
    Reference
    http://msdn.microsoft.com/en-IN/library/dd255287.aspx
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Dispaly or Hide a column based on Prompt Value

    Hi All,
    How can I Display or Hide a Column based on Prompt Value selected?
    On my dashboard I have a Report/Request and a Dashboard Prompt.
    Dashboard Prompt has three values, say: *'A', 'B' and 'C'*.
    And my report/request has three columns named *'Field1', 'Field2'* and Field3'.
    What I am trying to achieve is that whenever user selects prompt values as *'A' or 'B'* all the three fields on my report named *'Field1', 'Field2' and Field3'* should be displayed, however whenever user selects prompt values as *'C'* only fields named *'Field1' and 'Field2'* should be displayed.
    Thanks,
    Deepak

    Hi Bhavna,
    I tried using View Selector, however I am not able to achieve the required functionality with that.
    I created a Request with 3 columns in it, then I switched to criteria and added another table to that. The new table automatically got the similar 3 columns used in the first report. Now when I tried to delete one of those columns from the new report, it also got deleted from the first report.
    All the views are dependent, changes made to one are reflected in other.
    Can't figure it out, where am I going wrong?
    Thanks,
    Deepak

  • Hide column based on parameter value

    Hi All,
    I have requirement where i need to hide one column based on my input parameter value.per example
    if my parameter say DISPLAY is Yes then i need to hide the column AMOUNT..
    how to achieve this... Please help.
    Thanks
    Bharat

    Hi Bharat,
    You can do it following the steps explained in the documentation :
    http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T481157.htm#4535373
    regards
    Jorge
    p.s. If this answers your question then please grant the points and close the thread

  • Hide Report Column Conditionally

    Hi All,
    I have a report with 12 columns. I want to hide the particular report column if all
    the values in that particular column is 0 (Zero).
    Can you please help me in achieving the same?
    Thanks in advance.
    Thanks,
    SKJ

    Report Attributes > Column Attributes : CBB
    For the display condition, you can't refer to the values store in the column. It wouldn't make any sens to know all the values contain in a column at this point. You can use the #CBB# variable for "Column Formatting" and "Column Link" but you can't use it for "Conditional Display".
    WRONG :
    Value of expression 1 <> Expression 2
    and in Expression 1 i put column name i.e. CBB
    and Expression2 I put 0.
    GOOD :
    You have to use a query or a function to determine if the column should be displayed.
    Condition Type : PL/SQL FunctionBody Returning a Boolean
    Expression 1:
    DECLARE
    l_retval BOOLEAN := TRUE;
    l_sum NUMBER;
    BEGIN
    SELECT sum(your_column) AS sum_of_CBB
    INTO l_sum
    [FROM and WHERE of your initial QUERY goes here];
    IF l_sum = 0 THEN
    l_retval := FALSE;
    END IF;
    return l_retval;
    EXCEPTION
    WHEN no_data_found THEN
    --should never go here since your report would be empty
    null;
    END;

  • 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 a column in a JTable?

    Hi,
    Is it possibile to hide a column in a JTable?
    I mean not to remove, but just to hide the column (I need its values).
    Thanks
    LuKe

    Yup, just set the maximum width to zero:
    TableColumn result = getColumnModel().getColumn(index);
                result.setMinWidth(0);
                result.setPreferredWidth(0);
                result.setWidth(0);
                result.setMaxWidth(0);

  • How to hide/show a column in reports 10g according to the parameter value

    Hi,
    I want to hide a column in the report according to the parameter value, is it possible?
    For example, there is a parameter called P_TYPE. I want to hide a column called 'BALANCE' if the P_TYPE=0.
    This column is not the last one in the table, so if it is hide then that empty space should be occupied by next column.
    Is it possible means please explain me how to do it?
    Thanks in advance,
    SAN

    Create a format trigger (for both the header and the column item) that returns False on you condition.
    Set the horizontal elasticity to Contract (for both the header and the column item).
    Sometimes Contract doesn't work. Try Variable in that case. This has the disadvantage that the field can also expand.

  • How to hide table column based on country molga value

    Hi Experts,
    I am doing some enhancement in ess application. I want to hide table column based on country code i.e. Molga value.
    I want to hide coulm for only Japan country reset of them i need to be show those coulmn.
    Could you please provide me a sample code.
    Regards
    Chakri

    Hi Chakri,
    Your setting the table value that time you will get the Country Code.
    1.Create the attribute like Country_Column_Visible Data Type bind the com.sap.ide.webdynpro.uielementdefinitions.Visibility this value  you need to bind the table country column.
    2.In Table You need to check the country code Japan is available you need follow this below sample code.
    for(int i=0;i<tablesize;i++)
         tablesithValue=wdContext.nodeTable().getTablenode(i);
         if(null != tablesithValue.getcountrycode)
         if(tablesithValue.getcountrycode.equalsIgnoreCase("Japan"))
              wdContext.currentxxxxElement.setCountry_Column_Visible(WDVisibility.NONE);
         }else
              wdContext.currentxxxxElement.setCountry_Column_Visible(WDVisibility.VISIBLE);
    Use the above code you condition it will work.I hope it will help you.
    BR,
    Durga

  • How to hide one column in Alv if it doesnt contain any value

    Hi,
      In alv Grid if one coulmn doesnt conatin any value.I doesnt want to display in ALV grid.Is dat possible. Plz help.

    Hello Anu
    When you prepare your fieldcatalog check the column of the output itab for its contents, e.g.:
    " Itab GT_FCAT contains fieldcatalog.
    " Itab GT_OUTTAB contains ALV list data.
    " Condition: column "MY_COLUMN" should contain at least single value > 0
      LOOP AT gt_outtab TRANSPORTING NO FIELDS
                     WHERE ( my_column > 0 ).
        EXIT.
      ENDLOOP.
      IF ( syst-subrc NE 0 ).  " Column "MY_COLUMN" contains no value > 0, then hide column
        READ TABLE gt_fcat INTO ls_fcat
                  WITH KEY fieldname = 'MY_COLUMN'.
        IF ( syst-subrc = 0 ).
          ls_fcat-no_out = 'X'.  " not displayed, but visible in layout
          ls_fcat-tech = 'X'.     " not displayed, not available in layout
          MODIFY GT_FCAT FROM ls_fcat INDEX syst-tabix.
        ENDIF.
      ENDIF.
    Regards
      Uwe

  • Hide Matrix column With Parameter

    Hi
    I,m trying to hide matrix columns with parameters. If i for example have one matrix column with for example tre metrix values  (Jan, Feb, and Mar). I have an expression with the values Jan, Feb, Mar with witch i would like to decide which
    columns to show in the matrix column. In cases when i have a real column i use code as below in the column. But now that this three columns basically exists in one matrix column i dont know how to solve it. Anybody that has a soluiton on this preferably
    some example code on the example.
    IIF(INSTR(JOIN(Parameters!ColumnChoser.Value,
    ","),"Jan")>0,False,True)
    Best regards Arne
    Arne Olsson

    Why not restrict data to only show the months you passed. Matrix creates columns based on data available so what you need is a filter like this in query below
    WHERE ','+ @MonthList + ',' LIKE '%,' + MonthName + ',%'
    assuming @MonthList as parameter through which you pass Jan,Feb etc and MonthName is column of the table containing corresponding month names used as matrix column group.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Conditional inclusion of column cells based on value in another column?

    I was wondering if something like the following is possible -- I've looked through the forums and Numbers user guide but can't figure it out:
    Suppose I have a column A of sales figures, and columns B and C which basically have different attributes (say, color (yellow or green), size (small or large), and material (cotton or polyester)).
    I want to run basic statistics on various combinations: e.g. all yellow items regardless of size, all green cotton items regardless of size, all large yellow items regardless of material, etc.
    I want to be able to specify something like this:
    'Compute the average of every cell in column A where column B=="green" and column C=="large"'
    Is there a good way to go about doing this? Would I want to attack the problem using categories, sorting, and multiple tables? Or is there a way to conditionally include cell values from a range based on the value of that row's cell in another column?
    Thanks for any help.

    All I can think of to solve the quartile and median functions is to have another table of the same size as your original table that gets populated with just the items that match. Then you can do the quartile and median (and average) on that table. It's a one-at-a-time affair; you can only do one selection of size, color, and/or material at a time but you can get the median, mean, and quartiles of it. Of course, you could have multiple copies of this second table if you want to do more than one comparison at a time.
    In the attached file, unhide the hidden rows in Table 2 to see the formulas that do all the work.
    [files.me.com/pwb3/6hobt0.numbers.zip]
    Message was edited by: Badunit
    Message was edited by: Badunit

  • Conditionally assign a value to a parameter

    I'm using this code to conditionally assign a value to a parameter p_data_type:
    <?if:H_ACCOUNT_HIER_DESC='EST'?><xsl:param name="p_data_type" select="'number'" xdofo:ctx="begin"/> <?end if?>
    <?if:H_ACCOUNT_HIER_DESC='PAR'?><xsl:param name="p_data_type" select="'text'" xdofo:ctx="begin"/> <?end if?>
    However, I'm getting the following error.
    Caused by: oracle.xdo.parser.v2.XMLParseException: Duplicate variable 'p_data_type' definition.
    Once I get this working, I want to use it as follows:
    <?sort:current-group()/ACCOUNT_SEQ;'ascending';data-type='{$p_data_type}'?>
    Does anyone have any suggestions on how I might do this?
    Thank you,
    Tam

    Thanks, Vetsrini. Works great. I do have one further question if you don't mind. In the <xsl:when test...>condition below, why is the '//' reference required for H_ACCOUNT_HIER_DESC. The code didn't work unless I used the '//'
    Here is my template code:
    <?import:xdo://XXFIN.XXFIN_PSB_NUMBER_FORMAT.en.CA PROVINCE?>
    <?start:body?>
    <?for-each:XXFIN_PSB_GOS_EXP_ANNUAL_ACT_SUM?>
    <?for-each:G_HEADER_PAGE?>
    <xsl:variable name="p_data_type">
    <xsl:choose>*<xsl:when test="//H_ACCOUNT_HIER_DESC='EST'">*<xsl:value-of select="'number'"/></xsl:when><xsl:otherwise><xsl:value-of select="'text'"/></xsl:otherwise></xsl:choose>
    </xsl:variable>
    Here is my XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <XXFIN_PSB_GOS_EXP_ANNUAL_ACT_SUM>
    <P_OUTPUT>E17-1</P_OUTPUT>
    <P_ACCOUNT2_HIGH>
    <G_HEADER_PAGE>
    <H_RECIPIENT_NAME/>
    <H_PROG_SUM_LEVEL>SV/SP</H_PROG_SUM_LEVEL>
    <H_ACCOUNT_HIER>AC0000</H_ACCOUNT_HIER>
    <H_ACCOUNT_HIER_DESC>EST</H_ACCOUNT_HIER_DESC>
    Thanks again for your help.
    Tam

  • Hide some columns in alv if no values are present for that columns ..

    Hi all,
    This looks like a wierd requirement ..In my ALV report, i am displaying around 30 fields. Among those , based on the input ,data will not be there for some  of the columns .. In the output we want to hide those columns
    eg:
    Matnr     Descr    Column3  Column4
    Mat1      Des1     (No data)  sfsfs
    Mat2      Des2     (No data)  (No data)
    The required output is :
    Matnr     Descr    Column4
    Mat1      Des1     sfsfs
    Mat2      Des2     (No data)
    How to do this in the most simplest / right way?
    Hope my question is clear .
    Thanking you in advance,
    Shankar

    Hi shankara,
    1. In the output we want to hide those columns
    For this,
      a) first we have to know/detect  by looping the table/logic
         that which fields contain no data / are to be hidden
       b) after that we have to use the field catalogue properties.
        c) We have to loop at the fieldcatalogue,
            and set the value fieldcat-NO_OUT = 'X'.
           for those fields.
        (In this manner, those fields/columns won't be shown)
    regards,
    amit m.

  • Display Nothing in table column heding when parameter doesn't have any value

    Hi,
    I created one tabular report . Report has 2 parameters(ex: A and B) both have default values from two different datasets. I am using these parameters in two column headings (col1 has parameter A and col2 has parameter B) in report. My question is, if parameters(A
    and B ) don't have any value from the datasets it should display "Nothing" in the table column headings(col1 and col2). If parameters(A & B) have some value(June & July respectively) it should display in table column headings(col1 and col2).
    Thanks in advance,
    Visu

    Hi Visu,
    According to your description, you want to display the value of two parameters in two column headers. Parameter A in col1, parameter B in col2. And if the parameter returns null value, it should display “Nothing” in the header. If the
    parameter return a value, the value should be displayed in the column header.
    If in this scenario, in order to achieve your requirement, we can refer to the following expression in the two column headers:
    =iif(Parameters!ReportParameter_name.Value
    is nothing,"Nothing",Parameters!ReportParameter_name.Value)
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • How to deactivate an iPad

    Hi! My uncle give me an iPad tha he bought it in USA, I live in Spain. He sync it with his computer the first time to give his photos and music. I configured it with a new iTunes account, mine, and I configure it the activation block code (4 numbers)

  • How to inlcude POWL in Page builder as link list for already existing powl link list

    Hi All, I got a requirement to display POWL query as Link List in a Page Builder. But I have to add this POWL Link List to already existing set of Link Lists. The below are already existing ones. I want to add my custom POWL to the below list. Can an

  • How to get the Office 365 license when purchasing Stream 7?

     I am setting up my Stream 7 today but there is no indication of where I find the 25 digit Activation Key for my free 1 year subscription of Office 365. Anybody here know how to sign up? Many thanks.

  • User get caught during Workspace logon

    Hi all! Even tough this issue is related to the Workspace topic I decided to place this request in the Workbench topic. Accurate topic would be: LCES Process Management. Has anyone experienced the following strange problem? Always when a user task ha

  • Why is my iphone 4s (ios7) cant sync with itunes 11.1

    my laptop OS is windows 8.1 and the itunes 11.1 that i just downloaded cannot read my iphone 4s with ios 7