Hide an entire column based on a condition

Hello

I'm trying to completely hide a column in a table based on a condition, if the column was not present. I wrote two conditional regions for the header and data, but it is still showing up. Any help would be appreciated. The XML model RTF, the PDF generated and the output I'm looking is attached. Thank you.

Please check your email that I have forwarded to update the model.

I counted occurrences of January in your xml and formed the condition based on the fi

MONTH

Tags: Business Intelligence

Similar Questions

  • hide an entire column based on variable presentation?

    Has anyone tried to do this? If the user selects all records guest I want to display the analysts assigned to those records. If the user selects a specific analyst, I want to show the column of the analyst. I know I can null out or show analyst based on variable presentation but what about hide entire column?

    If this is not possible, has anyone tried to use conditional formatting to hide the entire column?

    Strange. It works for me. We will focus on this report and make sure that nothing is missing.

    The interim report has two columns, the column of the analyst and the MAX column (RCOUNT (1)), Yes?

    There is a filter on the column analyst defined according to the presentation of the prompt variable, Yes?

    You have another filter on the column MAX (RCOUNT (1)) set to "is greater than 1", Yes?

  • Update, one of the two columns based on a condition

    I have this example table:

    Lead_ID

    Mailed_Date

    Campaign of

    Model

    MPI

    MP2

    100

    August 2, 12

    Travel_Check

    US_Air

    null

    null

    200

    August 2, 12

    Travel_Check

    US_Air

    1099

    null

    MP1 and MP2 columns represent mailpiece_IDs (marketing mail that was sent).  MP1 is the first piece in the mail and MP2 is the second room that receives mail. Here Lead_id 100 received no mail and Lead_id 200 received the first piece.

    I want my update to allow me to update MP1 IF MP1 is null, but if MP1 is worth, I want MP2 to update. So if I update with a new post 2000 article ID the result should look like this after the update.  Lead_ID 100 received a piece of mail, and 200 Lead_ID received two parts:

    Lead_ID

    Mailed_Date

    Campaign of

    Model

    MPI

    MP2

    100

    August 2, 12

    Travel_Check

    US_Air

    2000

    null

    200

    August 2, 12

    Travel_Check

    US_Air

    1099

    2000

    I tried this case and I thought that maybe I could choose the field with COALESCE, but which doesn't seem to work.   Can anyone help?

    Hello

    Here's another way to do it:

    UPDATE yourtable

    Mp1 SET = NVL (mp1, 2000)

    mp2 = NVL2 (mp1, mp2 2000)

    WHERE LESS (mp1, mp2) IS NULL

    ;

    In any case, there are 2 columns that could be changed, so you should have 2 columns listed in the SET clause.  It does not matter that one or these columns will be always equal to itself.

  • How to hide a link/article based on the condition

    Hi all

    I have three sections in my dashboard page; section two contains guest user has run before. The third section contains a link to run the report. I need hidden link, run the report that users fill out invites him and press the Go button. How can I achieve this?

    Well, here are a few tips to navigate in this forum...

    (1) If a person offers a suggestion, answer like "Yes, it worked" or "no, it didn't work," then explain how it did not work if possible (you have an error message?, unexpected results, etc.)

    (2) even if a solution maybe not exact, if you helped to give you a new insight or if someone has taken the time to develop a response that helps you understand your problem beter, you can and should provide "useful" points

    (3) if the answer solves your problem or validates what you thought, you can mark it as "correct" and recognize providers of solutions and advice. ("Thank you guys for your help," etc.)

    (4) finally close the message itself.

    This would encourage others to help you in the future when you ask your question. (It is possible to "Watch" a user and never answer their question once again, if the poster is rude or ungrateful.)

    My final advice is Kishore is among the largest AIDS in this forum, my recommendation would be not not to the flame of his comments (even slightly) because it is he who will decide whether he will help you again. Oh, and Kishore hosts this forum. With many others in this forum, there just provides solutions and tips, devoting his time and resources when he can. :)

    I hope this helps.

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

    Hello

    I use BI Publisher 11.1.1.5.0.

    I need to hide the entire row based on the condition (if sal > 0 then hide entire line), please can you help on how can I achieve this?

    Thank you

    Hello

    I found the solution in

    Designer's Guide to reports for Oracle Business Intelligence Publisher version 11 g (11.1.1) Réf. E13881-02 - conditional formatting of the Section.

    Thank you

  • Hide column based on the State in BI Publisher Excel Template

    Hello

    I have a requirement to hide a column based on certain conditions in the Excel of BI Publisher model. I am newbie for BI Publisher excel template. Anyone can provide some advice on this?

    I need this emergency. Any kind of help would be very appreciated.

    Thank you

    Renu

    Hi Renu,

    Recently, I came across a similar requirement, and I went to without BEEP features to hide and show columns during execution, unlike the RTF.

    But I did it in Excel model with the help of the Macro. It works fine for me.

    Please see below

    1. based on a cell value 'A', I have to hide the column

    2 written a simple if statement in macro to get the value of 'A' and do the hide/show

    3. you need to do this only in "ThisWorkbook" macro is executed when the excel output is open.

    Thank you

    Mani

  • Displaying an icon for each record, based on a condition

    Hi people,
    I'm developing an application that uses forms 6i with oracle 10g. I have the "Grant" and "Deny" options in my application. I have also two icons is TICK icon and next is WRONG icon.according to the corresponding status icons ("granted" or "Refused") should be displayed for me.for this i have used multi-record block composed of 10 documents. Here is my sample code.
    IF :STATUS.C_STATUS = 'GRANTED' THEN
              Set_Item_instance_Property('status.tick',VISIBLE,PROPERTY_TRUE);
                   Set_Item_instance_Property('status.tick',DISPLAYED,PROPERTY_TRUE);
                   Set_Item_Property('status.wrong',VISIBLE,PROPERTY_FALSE);
                  set_item_property('status.wrong',DISPLAYED,PROPERTY_FALSE);
                     .............
    Using this code, I am able to get the visibility of icons, but it affects the entire column. For example, if the first status of cases is "granted" then TICK icon should appear to runtime.similarly if second status of cases is "denied" then ERROR icon should be displayed for me.but for me that the TICK icon is displayed for all 10 records if the State of the first record is "granted". How do the visibled corresponding icons according to status ("Granted" or "Refused"). Kindly give me a solution.

    Published by: vidusnat on May 2, 2012 12:26

    Hello

    Well, I don't think you can do it by making visible or invisible button/item. I can share an idea to create two image files a given and one for refuse. Multi record block you create an element of the image (non-database) and read the image on this element in the post (at the block level) based on the State values that you so condition...

    TRIGGER = POST-QUERY (BLOCK-LEVEL)
    IF :STATUS.C_STATUS = 'GRANTED' THEN
      READ_IMAGE_FILE('image_path\access_given.JPG','JPG','BLOCK_NAME.IMAGE_ITEM_NAME');
    ELSE
      READ_IMAGE_FILE('image_path\access_denied.JPG','JPG','BLOCK_NAME.IMAGE_ITEM_NAME');
    END IF;
    

    -Clément

  • Report view columns based on the selection of the month

    Hello

    I have an interactive report.
    In my report, I show the columns below. Let's say the show for months salary of the EMP for this month

    EmpID, ename, jan, Feb, mar, Apr, may, June, July, August, Sept, oct, nov, dec

    I have two selection lists (to filter the report) in my interface. P1_MONTH and P1_YEAR. These have static LOVs.
    Jan (Display) - 01 (Return)
    (Display) - 02 Feb (Return) and so on.

    I am facing problem while hiding under certain conditions the columns.
    For example, if the user selects the month "Mar." Then the report should display

    EmpID, ename, jan, Feb, mar

    Another example, if the month is "Jun" then

    EmpID, ename, jan, Feb, mar, Apr, may, June

    So he must hide under certain conditions the columns based on selection.
    I put the conditional 'view' in the column of the report for "expression of the ar-ticle/column value 1 = expression 2'.

    P1_MONTH (in the expression 1)
    + 06,07,08,09,10,11,12 (in the expression for the month of June selection 2) +.

    But doesn't the show/hide.
    Am I missing something? Please correct me if I'm wrong.

    I use APEX 4.1 & g 10 DB

    Thank you in advance,
    Daniel

    This

    value of item/column expression 1 = expression 2
    

    is equivalent to a PL/SQL expression, such as

    :P1_MONTH = '06,07,08,09,10,11,12'
    

    So maybe, select a PL/SQL expression condition and write something like that for the month of March - if I interpret correctly the your needs.

    TO_NUMBER(:P1_MONTH) <= 3
    

    Scott

  • Compare multiple columns and update a column based on the comparison

    Hi all

    I have to update the column STATUS of the slot structure of the table.

    Status should be 'P' if all the columns count are equal on the other should be "F".

    The value of the column can be "NA'. If the value is NA, then avoid this comparison column; compare only other 3 columns.

    My output should look like below.

    State of cnt1, cnt2 cnt3 ID cnt4

    1   4       4       4     4       P

    2   4       5       4     4       F

    3 4 4 NA 4 P

    NA 4 4 3 4

    I tried with the statemnt with BOX WHEN conditions and DECODE UPDATE, but could not succeed, can someone please help

    To do this, if you use my statement in response #11 box (Re: Re: comparison of multi-column and update a column based on the comparison of)

  • How to hide/show a field based on the data from more than 1 field?

    Hello.

    I'm trying to hide/show a based on the data of field2 and field3, Field1

    in fact using dynamic measurements I can only hide/show Field1 Field2-based, but I need a combination, for example:

    If field1 = 'A' and field2 = 'B', then see the field3, other hide field3

    y at - it an easy way to do it.

    I use Application Express 4.2.4.00.08

    Thanks in advance

    Dynamic action

    On the changes

    jQuery selector: #P1_ITEM_1, #P1_ITEM_2

    Condition: JavaScript

    $v ('P1_ITEM_1') == 'A' & $v ('P1_ITEM_2') == 'B '.

    Real Action: show item 3

    Action of false: hide item 3

  • Display a column based on another column

    Hello

    I work in the Apex 4.2.

    I have a tabular presentation based on a query.

    In this form, I have a column of link change with an icon. When I click it, I open a new page with the details of my record.

    I want that this column appears only when the user is entitled.

    So, I got in my request a new column based on a Pl/sql function that returns 1 when the logged-on user has the privilege package update the record.

    I call this new column "can_update."

    After that, I changed the "conditional display" property of my edit_link column.

    In type of condition, I put: "value for the element / the expression 1 column = Expression 2.

    I put in the expression 1: can_update

    I put in the expression 2: 1

    But it does not work as I want. colonm "edit_link" never appears.

    and the can_update column return the good value 1 or 0 on depend on the recording.

    Anyone has an idea on what I didi wrong?

    Thank you.

    Laurent.

    I found a solution to my problem.

    I have a column in my query that return 'none' or 'inline' when I have the privilege to update my file and thus, the column "edit_link."

    Thos query column name is link_disp

    And in the "link attribute" property, the "link in the column" Section of my edit_link, I add: "style =" display: #LINK_DISP #»»

    and it works well

    Laurent.

  • Insert data into the same table based on certain conditions

    Hello. I'm new to this forum.
    I have to write a stored procedure to insert data in a table MYTABLE say, having a structure like:

    Col1 Col2 Col3... TotalInstallments CurrentInstallment PaidAmount MonthYear
    I have to insert all the data that it is in the same table (MYTABLE) except change some fields based on certain conditions:

    1. if PaidAmount > 0 & & CurrentInstallment < TotalInstallment then

    CurrentInstallment = CurrentInstallment + 1

    2. in the field MonthYear I have data ex. 01/2012, 11/2012 formate(month/year)...

    So, I have to insert data by incrementing the month and year. for example:

    If currentdata is 11/2012 next data will be 12/2012

    But following will be 01, 2013
    I have to select all records that belongs to the previous month (across the field MonthYear) and put the audit on each record selected and insert data and then turns them into table (MYTABLE) even.

    How to achieve that?

    Thank you.

    978184 wrote:
    Hello. I'm new to this forum.
    I have to write a stored procedure to insert data in a table MYTABLE say, having a structure like:

    Col1 Col2 Col3... TotalInstallments CurrentInstallment PaidAmount MonthYear
    I have to insert all the data that it is in the same table (MYTABLE) except change some fields based on certain conditions:

    1. if PaidAmount > 0 & CurrentInstallment

    CurrentInstallment = CurrentInstallment + 1

    2. in the field MonthYear I have data ex. 01/2012, 11/2012 formate(month/year)...

    So, I have to insert data by incrementing the month and year. for example:

    If currentdata is 11/2012 next data will be 12/2012

    But following will be 01, 2013
    I have to select all records that belongs to the previous month (across the field MonthYear) and put the audit & on each of the selected data record and insert then turns them into table (MYTABLE).

    You can do this way:

    This is not tested, but if you can provide the example of table structure and data (IN create table and insert scripts), it can be put to the test.

    insert into your_table
    (col1, col2, col3...current_installment, month_field)
    select col1, col2, col3..,
           current_installment +
           case when paidamount > 0 and current_installment < total_installment then
            row_number() over (
                                partition by column1, column2,.. columnn      -->You may choose partition if you want the
                                                                              --Increment of Current_installment to reset after particular combination ends
                                order by primary_key        -->Order the Increment, you may choose to add more columns to order by
                              )
          else
            0                                               --> if condition is not met, then Add 0
          end curr_installment,
          add_months(to_date(month_field, 'MM/YYYY'), 1) nxt_month
      from your_table;
    
  • Can I use hierarchical column-based action link?

    Hi all

    I used 11.1.1.6.2 OBIEE.

    And I want to know can I use hierarchical column-based action link? I want to show the link based on some certain conditions...

    I try to add conditions, such as the Department is equal to A, but after that I added, it shows me "Department is equal to", why?

    Can someone give me some advice?


    Kind regards
    Anne

    Hi Anne,.

    It should work. How to add the link of action?. Click the icon + on the TreeView column in the criteria tab, lists all the columns in the hierarchy. Each column has its own column properties. Click on the properties of column-> tab Interaction Department hierarchy level and define your conditional action link.

    Kind regards
    DpKa

  • Generate reports based on two conditions

    Dear all,
    I generate reports based on satisfactory conditions in two columns in a table.

    For example.
    I have a table test1 with columns A, B, C, D, E
    Now, I want to create reports based on the research of two columns A and b. What is the preferred method to do?

    Thanks in advance.

    What is the preferred method to do?

    Write the appropriate query:

    select a,b,c,d,e
    from test1
    where a = 
    and b = 
    

    In reports, the State may be a user input parameter:

    select a,b,c,d,e
    from test1
    where a = :parameter1
    and b = :parameter2
    
  • display edit link based on a condition problem

    Hello

    Someone can such me how I can display the link change in every line of my report based on a condition... is the query on which my report is formed, as shown below

    SELECT COMPUTER_ID,
    COMPUTERNAME, BATCH, DESCRIPTION, OPERATING_SYS.
    PRIMADMIN_PHONE, PRIM_ADMIN, PRIMADMIN_CNID,
    SECONDADMIN_PHONE, SECONDARY_ADMIN, SECADMIN_CNID,
    RACK_NUM, MAINTENANCE_WINDOW from cts_masterserverview where ACTIVE_STATE = 'Active'.


    All these data are from several fields. If city and Andy see, probably they will remember... They helped me to change this option much... my problem is now
    I did the columns computer_id, which is the key in all other tables as a button change. And when the user clicks this edit button, data row respective are filled in the form, where the data can be changed...

    My requirement is now, at each change of line button should appear only if the user logged on as long as the PrimAdmin of this line... I am recovery PrimAdmin_CNID so that it can be compared against: APP_USER. All others should be able to view the data, but not modify... I am not able to figure out how I can conditionally display as I do for the other buttons.

    Can someone give an idea on how to do...


    Thank you
    Yvette

    Published by: user0012 on May 1st, 2009 13:25

    Hi David,

    Use the following query to conditional change the link,.

    SELECT
               CASE WHEN PRIMADMIN_CNID = :APP_USER THEN
                  ''
                ELSE
                         ' '
                END Edit
               ,COMPUTER_ID
               ,COMPUTER_NAME
               ,STATUS_ID
               ,DESCRIPTION
               ,OPERATING_SYS
               ,PRIMADMIN_PHONE
               , PRIM_ADMIN
               ,PRIMADMIN_CNID
               ,SECONDADMIN_PHONE
               ,SECONDARY_ADMIN
               ,SECADMIN_CNID
               ,RACK_NUM
               ,MAINTENANCE_WINDOW
               from cts_masterserverview
    where ACTIVE_STATE = 'Active'
    
    Add onclick= before "javascript above and Change the number 7 in the javascript to the page where you have edit form.
    

    Thank you
    Manish

Maybe you are looking for