Can we change filter column values in a union query using Dashboard prompt

Hi,
I have a requirement in which have to draw a chart report for last six months?.
When i query against database, my query got different where clause for open month and close month.
Say for july month bar, it got close month as july and open month as july, june, may. Like this, for june month bar, it has to have close month as june and open month as june, may, april. like this, i created six union queries using repository variable.
Want to give control using dashboard prompt for close month and open month?
my query look like this.
select close month1, fact1 from table1
where close month = july and open month in (july, june, may)
UNION
select close month2, fact2 from table1
where close month = june and open month in (june, may, april)
UNION
select close month3, fact3 from table1
where close month = may and open month in (may, april, march)
UNION
select close month4, fact4 from table1
where close month = april and open month in (april, march, february)
UNION
select close month5, fact5 from table1
where close month = march and open month in (march, february, january)
UNION
select close month6, fact6 from table1
where close month = february and open month in (february, january, december)
Welcome your suggestions on this?.
Thanks

Hi Karol,
Yes the prompt is working fine when i put this following method under the "Button" Component.
APPLICATION.openPromptDialog(800, 600);
Somehow the when i use the "Input Field" and use the "Button" Component and write this following logic inside it i don't see the prompt is not taking the values what i am entering in input field i assume that its issue with data-source not getting refreshed.
Variable=INPUTFIELD_1.getValue();
APPLICATION.setVariableValue("PercentageIncrease",Variable);
Thanks,
Kumar

Similar Messages

  • Value Based user guided Navigation Using Dashboard Prompt

    Hi all Experts,
    I have a different dashboard pages and dashboards for each year sales and so on, like 2001,2002etc in OBIEE 11.1.1.5 answers and dashboard.
    My requirement is using dashboard prompt for year need to navigate to that particular dashboard.
    for example if I select 2001 should navigate to 2001 Dashboard
    if I select 2002 should navigate to 2001 Dashboard.
    and for another report for Top 10 Products if I select a product name should navigate to detail product report.
    I am not getting idea using guided navigation link,
    Please suggest me how we can implement this task into our report.
    Thanks in advance

    Hi,
    my suggestion, don't that way..do the below things..
    1) for year wise sales report.
    keep artificial Time Dimension and try map Date column into all othe fact table and try to use time.date column in the dashboard prompt that prompt will list out all the year like (2001,2002..2020..etc) make this propmpt column should be is prompted in that Answres report --> date column
    2) let Product wise report,
    report 1 :Product Summary ( call u child report in the column properties -->Interaction--> value Primary interaction--> action link--> select bi content --select it u r report and save it run it.
    report 2 :Product Detailed (this report navigation column make sure should be is prompted )
    Thanks
    Deva

  • How to change the column value which is coming from DO by a calculated field?

    Hi all,
    I want to change a column value based on my calculated field value. I have a column which is coming from DO which is based on External Data Source. I have a calculated field in my report. When there is any change in the calculated field then the column which is coming from DO needs to be changed. It means the DO needs to get updated when there is a change in the calculated field. Or like if the calculated field meets some condition then I need to change/update the same in the DO. This has to be done on the fly. the report should not submitted for this. when there is a change in the calculated column the DO column needs to get updated.
    Thanks,
    Venky.

    Ok, I've been a customer for very many years, I'm on a fixed retirement
    income.  I need to reduce my bills, my contract ends in  Dec. I will be
    pursuing other options unless I can get some concessions from Verizon.  My
    future son-in-law was given this loyalty plan, so I know this is a
    reasonable request.  My phone number is (removed)  acct number
    (removed)
    >> Personal information removed to comply with the Verizon Wireless Terms of Service <<
    Edited by:  Verizon Moderator

  • How can i  change the column label text in a alv table display

    how can i change the column label text in a alv table display??
    A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
    <i>*  declare column, settings, header object
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
    get column by specifying column name.
    lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
    set Header Text as null
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_text( ' ' ).</i>
    My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
    <i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
    i have checked in debugging and the error occured at the statement :
    <i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
    Thanks,
    Suri

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

  • Changing the column value

    Hi,
    I have to change the column values in a table. The values in the column are to be updated.
    For e.g. If the old value is
    "xxxxxxxxxx", I need to take that and update into "xxxyyyxxxx".
    The column values is so long as its a description field, so its a combination of many other table fields. Its just I need to add one more field.
    How can I do that? Any help appreciated.
    Thanks

    Hi,
    See this:
    I have got table with DESCRIPTION column which will be updated. Table structure is:
    SQL> DESC SOLD_ITEMS;
    Nazwa Warto&#347;&#263; NULL? Typ
    COMPONENT VARCHAR2(255)
    SUBCOMPONENT VARCHAR2(255)
    YEAR NUMBER(4)
    MONTH NUMBER(2)
    DAY NUMBER(2)
    DEFECTS NUMBER(10)
    DESCRIPTION VARCHAR2(200)
    Table description contains values from (component, year, month, day & defects) column. I would like to add subcomponent value to this column.
    SQL> SELECT * FROM SOLD_ITEMS;
    COMPONENT SUBCOMPONENT YEAR MONTH DAY DEFECTS DESCRIPTION
    graph bar 2006 4 3 10 graph 2006/4/3
    graph bar 2006 4 1 1 graph 2006/4/1
    search user search 2006 4 2 23 search 2006/4/2
    search user search 2006 4 1 54 search 2006/4/1
    search product search 2006 3 20 0 search 2006/3/20
    search product search 2006 3 16 3 search 2006/3/16
    6 wierszy zosta&#322;o wybranych.
    SQL> EDIT
    Zapisano plik afiedt.buf
    I use the SUBSTR and LENGTH function to place SUBCOMPONENT value between COMPONENT value and YEAR value. That's how I done it:
    1 UPDATE SOLD_ITEMS
    2* SET DESCRIPTION = SUBSTR(DESCRIPTION,1,LENGTH(COMPONENT)) || ' ' || SUBCOMPONENT || ' ' || SUBSTR(DESCRIPTION,LENGTH(YEAR))
    SQL> /
    6 wierszy zosta&#322;o zmodyfikowanych.
    SQL> SELECT DESCRIPTION FROM SOLD_ITEMS;
    DESCRIPTION
    graph bar 2006/4/3
    graph bar 2006/4/1
    search user search 2006/4/2
    search user search 2006/4/1
    search product search 2006/3/20
    search product search 2006/3/16
    6 wierszy zosta&#322;o wybranych.
    SQL> SPOOL OFF;
    Peter D.

  • How Can I get multi column values from dynamic search help?

    Hi Gurus;
    I'm using dynamic search help in my program.
    I want to get multi column values from search help. But I dont know solution for this issue.
    I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
    How Can I get multi column values from dynamic search help?
    Thanks.

    Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
    I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
    There are like 3 steps.
    You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
    Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined  (just to keep it straight, i will be putting here) data:  It_return type standard table of ddshretval.
    Next step is to call the function module. Make sure you have values in IT_VALTAB.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
            retfield        = 'FLD2'
            value_org       = 'S'
          tables
            value_tab       = It_VALTAB
            return_tab      = It_return
            dynpfld_mapping = It_dynpfld
          exceptions
            parameter_error = 1
            no_values_found = 2
            others          = 3.
        if sy-subrc <> 0.
          message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        else.
          perform get_selected_fields tables It_return.
        endif.
    The code within the perform GET_SELECTED_FIELDS  - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
    I need a internal table as well as a work area here. like,
    data: lt_fields type table of dynpread,
            la_fields type dynpread.
      field-symbols: <fs_return> type ddshretval.
    so fill out LT_FIELDS from the IT_RETURN table
    loop at lt_return assigning <fs_return>.
        la_fields-fieldname = <fs_return>-retfield.
        la_fields-fieldvalue = <fs_return>-fieldval.
        append la_fields to lt_fields.
        clear: la_fields.
      endloop.
    Call the FM to update the dynpro
    call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname               = sy-repid
          dynumb               = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
        tables
          dynpfields           = lt_fields
        exceptions
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          undefind_error       = 7
          others               = 8.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    good luck

  • How can I change excel column header using Labile.

    Dear Experts,
                          How can i change excel column header using LabVIEW.
    Thanks for any and all help!
    M.S.Sivaraj.
    Sivaraj M.S
    CLD

    As I said in my previous post, column headers in Excel are merely row 1 cells. May be I missing something here, so please be more explicit with your question.
    I guess you are using the Excel Report tools, and you want to modify an existing sheet. From my limited experience with the Excel Report tools, it is not possible to open an existing woorkbook (except as template...), so the answer to your question should be "Forget it"...
    The work around is to use the example I pointed for you before, and either to write the whole new colum headers as a string array, starting in A1, or to write a single string to a given cell in row 1.
    Hope this helps 
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Dml error logging: can we pass source column values to ora_err_tag$

    Hi Experts,
    We can set ora_err_tag$ values while implementing dml error logging feature.
    Can we pass source column values to ora_err_tag$ field of error table?
    Thanks,
    Dhiraj

    F5wrong forum
    Philip

  • Can't change string variable values in Flash CS4 Debugger

    I'm using the Flash CS4 debugger, and while I can change numeric variable values in the Variables panel, I can't change string variable values. The only characters the fields accept are the numbers 1-9 and the characters "d" and "j".
    I can  paste strings  into the value fields, but that's a bit of a pain. I've tried this on a couple of different Flash CS4 installations and get the same results.
    Does anyone know if it's possible to change string values in the Variables panel of the Flash CS4 Debugger?

    See:
    http://forum.java.sun.com/thread.jspa?threadID=591012&tstart=15

  • How to change the column value upto 68000 rows

    Hi,
    I want to change the column value.
    I have table called RefDoc
    Select distinct r.int_ref from refdoc r where r.int_ref like '\\dxb%'
    Int_Re__f
    \\dxb\Sample\BFE B777\2008\PO2025225.tif
    \\dxb\Sample\RO\SFR\26-01-2009j\RO2022098.pdf
    \\dxb\Sample\RO\SFR\26-01-2009j\RO2040831.pdf
    \\dxb\Sample\BFE B777\2008\PO2025253.tif
    \\dxb\Sample\RO\UM INV\26-01-2009\RO2018358.pdf
    up to 68000 rows
    I want to change to \\AUH instead of \\dxb.
    I want the table like
    Int_Re__f
    \\AUH\Sample\BFE B777\2008\PO2025225.tif
    \\AUH\Sample\RO\SFR\26-01-2009j\RO2022098.pdf
    \\AUH\Sample\RO\SFR\26-01-2009j\RO2040831.pdf
    \\AUH\Sample\BFE B777\2008\PO2025253.tif
    \\AUH\Sample\RO\UM INV\26-01-2009\RO2018358.pdf
    Thanks
    Nihar

    user REPLACE function and change it
    UPDATE refdoc
       SET int_ref = REPLACE(int_ref, '\\dxb\', '\\AUH\')
    WHERE int_ref like '\\dxb\%'

  • How can i select other column values('-' separated) in group by function

    CREATE TABLE EMP (
         EMPNO NUMBER(4) NOT NULL,
         ENAME VARCHAR2(10),
         JOB VARCHAR2(9),
         SAL NUMBER(7)
    INSERT INTO EMP(EMPNO, ENAME, JOB, SAL) VALUES (7369, 'SMITH', 'CLERK', 800);
    INSERT INTO EMP(EMPNO, ENAME, JOB, SAL) VALUES (7499, 'SMITH', 'SALESMAN', 1600);
    INSERT INTO EMP(EMPNO, ENAME, JOB, SAL) VALUES (7521, 'ALLEN', 'SALESMAN', 2400);
    In Output I want 3 columns : EMP,SUM(SAL),JOB(hyphenSeparated)
    Means i want my output like
    First row : SMITH,2400,CLERK-SALESMAN
    Second row : ALLEN,2400,SALESMAN
    I tried to write following sql : select ename,sum(sal) from emp group by ename
    But i want other colummn value in '-' separated. but group by is only allowing agreegated function.
    How can i select other column value using group by function.

    SQL>  select ename,sum(sal), listagg(job, '-') within group (order by job) as job  from emp group by ename;
    ENAME        SUM(SAL) JOB
    ALLEN            2400 SALESMAN
    SMITH            2400 CLERK-SALESMANnote: LISTAGG is a feature of 11.2

  • Can we change key field values in table maintenance

    Hi,
      I have created Z-table and table maintenance for the same...
    In table maintenance..Can we change key field values??
    Is there any posibility????
    Rayudu

    you can do it in this way.
    open sm30->tablname->edit
    snow select the row(s)->copy->change the keyfield values-back->save.
    no in that sm30, select records with old primary key and delete->save.
    so you got all field similar for those record under modification, only the key field changed.

  • Can I change  FactTable's values?

    Hi:
    Can I change FactTable's values after Dimensional Modeling ?

    After you define the fact you will have associated the fact foreign keys to the appropriate dimensions and defined the measures and possibly attribute sets.
    At this point, you can remove/add dimension keys as well as measures and attribute sets. You can also rename the cube (fact).
    Once you are done, you will have to redeploy the fact, and here you can encounter problems - if you already have data in the cube and you changed the cube structure (dimensionality) you will have to re-load the new cube from scratch.
    Regards:
    Igor

  • How can I change from paying with a credit card to using prepaid for itunes

    How can I change from paying with a credit card to using prepaid for itunes on ipad 2 .alrwady have app ID

    iTunes Store: Changing Account Information
    http://support.apple.com/kb/HT1918
    Apple ID Support - Manage Account
    http://www.apple.com/support/appleid/manage/
     Cheers, Tom

  • How can I change the email from my app store an use a different email forgot password

    How can I change the email from my app store an use another email

    Hi there,
    You may find the article below helpful.
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311
    -Griff W.

Maybe you are looking for

  • 'screen cannot be larger than 2048x2048' after upgrade

    I have a Samsung NC10 (Intel GMA 945) which I use together with an external monitor (1280x1024). The external screen is to the right of the netbook, so I want to use the --right-of option in xrandr. This worked fine after adding 'Virtual 2304 1024' t

  • Why is my Publish button not available?

    I am trying to publish a generator for FCPX (10.1.4) out of Motion (5.1.2). My OS X is 10.10.2. However, when I select the "Publish as a Final Cut Generator" option out of the selection box in Motion (see screen shot: http://screencast.com/t/3ybVCuzS

  • How to download data in excel from web report in sap ?

    how to download data in excel from web report made  in sap abap? through tcode smw0.

  • ESS - Own data dumps. Only for employees with PERSG "L"

    Some employees are getting a "Serious error" in own data in ESS.  I get runtime error OBJECTS_OBJREF_NOT_ASSIGNED_NO in  function FUNCTION hrxss_per_cleanup.  The error  is mentioned several times in the forum: Done several analysis, and found the fo

  • InDesgin won't Install CS6 trial.

    I have intalled photoshop, illustrator, and dremwever trial with no problem, but InDesign also stops and says there has been a installation error. WHY IS THIS???????