Answer OBIEE: SQL filter to a column of the dashboard example: 201301

I need to filter the report based on one of the filter on the column that is created by custom calculation:
YEAR ("order header attributes". ("' Status date") * 100 + of the WEEK ("order header attributes". "State date") "
and this, in the number format.

I need the filter as: 2013 + Week (CurentWeek)-1 = 201302

Please help me create a custom SQL for the same filter thing.

go to edit promt and click on the pencil symbol you will get oone window and click on the Fx symbol, it will show u the formula here editor you must write the formuls above suggested by Anita...

for Ibots... create a query using the filter to get the week - 1 records (201302) values and make the reports as request in Ibot...

Tags: Business Intelligence

Similar Questions

  • Interaction of value of navigation from one column to the dashboard prompt

    Hi all

    I am fairly new to OBIEE and employs 10g. Currently, I am trying to format our dashboard to track usage. So, I have a report that I want to be able to select a column ("dashboard") and use navigation value interaction or another method to pass its value in a quick dash in a different tab, so I can sort by this column ("Dashboard") for the six reports it. I can get the navigation to work tool to go to another report or dashboard, but it will not filter by the selected column, nor can I get it in the dash line. I was search the forumns and google like crazy, and can happen anywhere... This funcationality still exist?

    Any help would be much appreciated!

    M

    941044 wrote:
    Hi all

    I am fairly new to OBIEE and employs 10g. Currently, I am trying to format our dashboard to track usage. So, I have a report that I want to be able to select a column ("dashboard") and use navigation value interaction or another method to pass its value in a quick dash in a different tab, so I can sort by this column ("Dashboard") for the six reports it. I can get the navigation to work tool to go to another report or dashboard, but it will not filter by the selected column, nor can I get it in the dash line. I was search the forumns and google like crazy, and can happen anywhere... This funcationality still exist?

    Any help would be much appreciated!

    M

    Try this:

    (1) create a small report with a single column, the column that you use in your source in relation to the Interaction of the value.

    (2) on your six reports, put a filter on the same column, conversion to the "filter based on another request.

    (3) points to the report small and the column of the report.

    Your reports will be properly filtered.

  • Is it possible to hide / show columns in the dashboard?

    Hi all

    It is my very first post in this forum OBIEE.

    My requirement is to allow users to select what they want to see answers of columns asking in dashboard. For example in the application of responses he is 10 columns and 5 of them are hidden. Is it possible to change this property hide these columns hidden in the Dashboard?

    Thanks in advance.

    If you are thinking about a multiple selection prompt that has your names of columns as values, then no, you can't. But don't forget to uncheck the "Automatically refresh when a new column is selected" at the top of the display of the column selector. This will allow your users to choose all the appropriate columns before clicking on the button 'Go '. Which ' forget to mark the message useful (s) (at the top right of the post there) If you helped.

    Thank you!

    Edited by: David_T May 21, 2010 07:08

  • Column in the dashboard selector

    How can implement us a column Chooser in the dashboards as below?  Is there a way to tweak to get the column Chooser in the dashboard?

    Dahboard1.JPG

    Thank you!

    I don't really know why you can not have two reports you decide to display in an analysis (where you are then able to use a column for both selector) since the only thing they do not appear to have in common is the measurement column, but you can always get what you're trying to do by creating a line of dashboard and use it as a column selector.

    1 - create a dashboard quickly with a prompt variable and set the values you need. For example for the purpose, I use the values of 'Company' and 'Brand '.

    2. in your analyses, create the following formula in the column you want to act as a column Chooser:

    BOX WHEN ' @{pv_column} {company} "= 'Society' and 'Offices', THEN '. '" D4 Company' WHEN ' @{pv_column} {company} "= 'Brand' AND 'products'". "" P4 Brand' END

    3 - all put together in a dashboard page and you should get the following result

    If I understand what you want well, that should do the trick.

  • Using the column in the Merge of Oracle statement and column name not valid

    Hello

    I have the database table called ecp_blobdata with the following description of the table:
    OBID VARCHAR2(24),
    ZBINDATA LONG,
    ZLEN INTEGER
    I implemented the following statement from Oracle FUSION to refresh this table:
    MERGE INTO ecp_blobdata ecbl
    
          USING rnlht1m4.zbindb@TCPROD bin
          ON (ecbl.obid = bin.obid)
          WHEN MATCHED THEN
               UPDATE SET
                      ecbl.obid = bin.obid,
                      ecbl.zbindata = bin.zbindata,
                      ecbl.zlen = bin.zlen
          WHEN NOT MATCHED THEN
               INSERT VALUES(ecbl.obid, ecbl.zbindata, ecbl.zlen);
               COMMIT;
    However, I get the following error message when I try to compile the package:
    Compilation errors for PACKAGE BODY BHALLAR.DATA_REFRESH
    
    Error: PL/SQL: ORA-38101: Invalid column in the INSERT VALUES Clause: "ECBL"."OBID"
    Line: 13
    Text: MERGE INTO ecp_blobdata ecbl
    
    Error: PL/SQL: SQL Statement ignored
    Line: 13
    Text: MERGE INTO ecp_blobdata ecbl
    The column defintely exists, but I don't know why he keeps complaining with the same error message? It's to do with the help of column which is zbindata or something else that I might not be looking at?

    Thank you.

    G ' Day

    Your syntax is incorrect.

    In the list of VALUES, you should refer to your table in the source columns, alias 'bin '.

    That is to say, precise cause number error message in the documentation:
    Cause: INSERT fact VALUES clause references columns in the destination table

    SW

  • Change the 'Date' of a column in A table, the new column in the Table b:

    I'm trying to pull a TABLE_A Date and change the year at a date and popluate it into a new table. I would also like to put on the KP to TABLE_A, so that I can create a link to the master record.

    In my example I use SYSDATE to my current date. Once I get the script working, I want to shoot the Calander_Date of my "current schedule" by their SUMMIT.

    1 INSERT INTO TABLE_B (NAME_ID VALUES, Date, New_Date ())
    2 NAME_ID, (it is a column OF TABLE_A).
    3. DATE, (it's also a TABLE_A Colum)
    4 TO_CHAR(DATE,'DD') | » -'||
    5 TO_CHAR(DATE,'MON') | » -'||
    (6 TO_CHAR(SYSDATE,'YY'))
    7. FROM TABLE_A
    8. WHERE TO_CHAR(DATE,'MON') = TO_CHAR (SYSDATE, 'MY');

    Needless to say that it does not work! I am very new to SQL and APEX. I tried also incorporate some INSTRUCTIONS SELECT, as shown below, but even now of (trying to figure out out to calculate the TO_CHAR FROM DUAL and TABLE_A for the "DATE" column)

    1 INSERT INTO TABLE_B (NAME_ID VALUES, Date, New_Date ())
    2. SELECT NAME_ID IN THE TABLE_A,
    3. CHOOSE DATE TO TABLE_A,
    4. SELECT TO_CHAR (DATE, 'DD') | » -'||
    5. SELECT TO_CHAR(DATE,'MON'). » -'||
    6. SELECT TO_CHAR (SYSDATE, 'YY')) OF
    7. BASED ON NAMES
    8. WHERE TO_CHAR(DATE,'MON') = TO_CHAR (SYSDATE, 'MY');

    According to the changes I I usually get the following two errors:

    ORA-0933: SQL command not properly ended (in the first example)
    ORA-00936: Missing Expression (in the second example).

    Appreciate all the thoughts that you all might have.

    LEONHARK

    Oh, and I forgot to mention, special attention for the day/month/year. The examples I cited are for digital day/month/year. If they are stored at May 1, 2008, replace the "MM" above "LUN."

    Good luck!

  • Table repository - Business model - 10g OBIEE logical to physical table, column mapping is empty

    Hi, I'm really new to OBIEE 10 g.

    I've already implemented a database SQL Server 2005 in physics and import a vw_Dim_retail_branch view.

    The view has 3 columns: branch_id, branch_code, branch_desc.

    Now, I want to set up the business model to map this physical table (view).

    I created a new business model

    Adding new logic table Dim_retail_branch

    In sources, added the vw_Dim_retail_branch as a table source.

    But in the logical table source column mapping tab window, it is empty. I thought he should be able to identify all of the columns in vw_Dim_retail_branch, but no. The spectacle of the mapped column is checked.

    What should I do here? Each column type manually?

    Hello

    You can drag and drop the columns from the physical layer to layer MDB.

    Select 3 columns and drag and drop it to the logical column created in the MDB layer.

    For more reference: http://mkashu.blogspot.com

    Kind regards

    VG

  • Filter on Date column

    Hello

    I have a date column. But when I tried to add filter on the date column, I can't retrieve the data when I click on all the choices. Its displays a message like no choice available.

    Please suggest what would be the problem.

    Urgent...

    Thanks in advance

    Follow these steps:

    1) click on the filter button. Leave the operand, as is and enter 01/01/2009 in the field of securities.

    (2) convert the SQL filter. You should see that OBI adds the "timestamp" syntax to your datetime column. (This is a trick to make sure you have the right format).

    (3) now change the 'equal' to the word sign BETWEEN

    (4) click at the end and add the following:

    AND CURRENT_DATE

    You should end up with something that looks like this:

    "table name". "your date column" BETWEEN timestamp ' 2009-01-01 00:00:00 ' CURRENT_DATE AND

    This is your filter.

  • Default presentation variable used in the SQL filter expression

    Hello
    I am trying to use a default value for a variable used in a sql expression in a filter presentation and could use assistance on why obiee stifles the syntax.

    I have a report prompted with a prompt on the name of the month (variable presentation framework - pres_month_name). The value read is used in a filter as an sql expression. The sql expression is a DEAL on the variable of presentation and its conversion to a number based on business rules.

    In the sql expression, I give you the presentation variable a default value for a variable of repository - rep_default_month_name. Repository variable is correct and no, based on business rules, returns an appropriate default month name.

    Now, if I hard code the value by default, there is no problem. Here is a sample of the filter:
    The month number less than or equal to * DEAL "{pres_month_name} {OCT}" WHEN "NOV" THEN 10 WHEN... END *.

    Notice that the variable of presentation is between single quotes, because this is an area of character. Once more, it works fine, but I don't want to hardcode the default, I want it based on the variable repository, therefore:

    The month number less than or equal to * DEAL '{pres_month_name} {ValueOf (rep_default_month_name)}' WHEN 'NOV' THEN 10 WHEN... END *.

    By having this syntax for default of the variable of the presentation, I receive a message from the incorrect values in a filter.

    This report is not only used on a dashboard, but used in a briefing book as well. Whenever a briefing book is updated, by default the presentation variable is used, because obviously, the presentation is not available in a briefing, and I don't want to use a hard-coded value.

    I could duplicate the report and adjust the sql to not use the presentation variable, but always use the repository variable that returns a month by default, but I would be duplication of effort and I have to do this on several requests.

    Thanks for the help!

    Try this syntax described in the blog of Shiva that follows...

    http://shivabizint.WordPress.com/2008/10/02/Oracle-BI-EE-variables-overview/

  • Change the sql filter code trade name

    All,

    one of my filters is a "Term" Advanced sql code "' Code word ' = VALUEOF (NQ_SESSION. CSA_Analysis_Term)
    When I add the filter to the report (add a filter) the user does not understand the code above,
    and I can't seem to find a way to add a name to make it more useful to users.

    anyone tried it with that

    Thank you

    I see your problem...

    When you have used this session variable in filters part you are able to see the session instead of the value variable last rite?

    You have guest of dashboard set to "Term". "' Term Code ' to the dashboard page?
    If so, why by default the session here filters variable part of the report? by default it prompt default dashboard section...

    just say guest is on the code term column in your report

    Published by: Kishore Guggilla, November 29, 2010 23:38

  • SELECT in advanced SQL filter query

    Hi all

    I create a shared filter and I need to write a sql statement to a column. Can I use
    in the Advanced SQL filter string functions. My sql query is:

    Select distinct 'exchange rate '. "' Type ' of 'Credit'
    where substr (rtrim ("exchange rate". "Type')(,-1,2) in (select distinct substr (rtrim (" "-year" "." ")))" (Name of the year"),-1, 2).
    "Credit" where CURRENT_DATE between '-year '. " "Year Start Date ' and '-year '." Year-end Date")

    there where, 'credit' = area name
    'Exchange rate' and '-year "= table presentation.

    I get the error message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 27002] Close to: < select >: syntax error [nQSError: 26012]. (HY000)

    I then tried a simple query in the Advanced SQL filter: "exchange rate". "" Type "= SELECT"exchange rate ". "' Type ' OF 'Credit'
    which doesn't work anymore.

    Can't debug the problem.

    Thank you

    I think that you will need to write SQL logic. You used SUBSTR and RTRIM which I didn't see in the list of functions in the responses. You must use the equivalent functions of responses such as substring and TrimLeading

  • Suddenly, I have a column on the left side of my screen shows all the latest tweets.  I didn't ask for this purpose; I certainly do not install it.  And I can't find a way to shut it down or remove it.  Someone out there has an answer?

    I do not know how to remove a column on the left side of my screen that can display applications of social networks and RSS Web site, that you want to appear.  I deleted all pet food but now I have an empty column and I want to delete this, and I can't find a way to shut it down or remove.  Someone out there has an answer?

    Box of Safari?

    Click on the sidebar button in the toolbar of Safari

    or

    Click on the 'View' menu in the menu bar of Safari and choose "Hide Sidebar".

  • How to find the primary key columns in the tables in MS Access using SQL queries

    How to find the primary key columns in the tables in MS Access using SQL queries

    Hello

    This is the forum for Windows Vista programs related issues.

    For better assistance, please try instead the Forums in SQL Server .

    Thank you! Vincenzo Di Russo - Microsoft MVP Windows Internet Explorer, Windows Desktop Experience & security - since 2003. ~ ~ ~ My MVP profile: https://mvp.support.microsoft.com/profile/Vincenzo

  • SQL query * I want to insert a file column in the other table based on two columns

    I want to insert a column records to another table based on two columns

    the query below does not work

    insert into def_ver_lnki_p (job_name)

    Select def_job.job_name

    from def_job where def_job.job_id = def_ver_lnki_p.job_id and def_job.table_id = def_ver_lnki_p.table_id;

    Just to correct sql

    Update

    def_ver_lnki_p define job_name =)

    Select def_job.job_name

    of def_job

    where def_job.job_id = def_ver_lnki_p.job_id

    (and def_job.table_id = def_ver_lnki_p.table_id);

  • SQL monitor help with column of chronology

    monitor_test.jpg

    In the report attached to sql, in the timeline column means the whole last 3 began simultaneously and hash join is the first exploited who started?

    my understanding is 'index range scan' should start first and give the data to "Single Partition range". Only once this step completed, he should 'TABLE ACCESS Full'. Isn't this correct?

    Thanks for your time!

    Your description is correct - and I think that you just have to allow some defects in the rounded, graphic display of errors and inconsistencies in what is "the order of execution.

    If it is still possible, you can watch dbms_sqltune.report_sql_monitor output text () as numbers COULD clarify the sequence - on the other hand, the granularity of the timer is not very fine.

    You may find that the chronology of hash join begins before the access times two table - which highlights the problem of "means to launch an operation."  The subroutine "do a hash join" must begin before the two tablescans, on the other hand the mechanism 'return rowsource to parent' cannot start until after the second table access began to return the hash join lines.

    Another sign of the available seeds, of course, is that the select statement does not seem to have started until a few seconds after the hash join has started!

    Concerning

    Jonathan Lewis

Maybe you are looking for