Issue with repository variable in OBIEE 11g

Hi
While i am using repository variable directly in filter it is working fine, but when i am using 'repository variable -1' in filter then it is throughing error as 'repository variable -1' is not present.
Can't we use - , + on repository varaibles in filters.Can anyone help me.
Thanks
Edited by: Manu on Apr 2, 2013 4:28 AM

I want to know how answers is treating it char type or number type?
just cast it to number and try.
Edited by: Srini VEERAVALLI on Apr 2, 2013 7:00 AM
BTW: how you are calling variable
lik this
repository variable - 1
or like this
VALUEOF(repository variable) - 1
Edited by: Srini VEERAVALLI on Apr 2, 2013 7:11 AM

Similar Messages

  • Issue with Dashboard customization in OBIEE 11G

    Hi All,
    I have a dashboard page with 1 prompt and 4 sections. My need is to show all sections minimized when a user logs in to the analytics. So as a Admin I have minimized all sections and saved the customization for others as Default customization.
    Now the problem is I have column called Month in my Prompt, which is a Multi select column, for this column I made to select few values by default using SQL results option, which basically selects all months less than current month, for example current month is Jan'13 so values till Dec'12 month will be checked by default. Since we have saved customization, the month column is not getting refreshed , for example when I login to analytics on Feb'13 , the data is still checked till Dec'12, which ideally should also include Jan'13 as well.
    Anyone please advise on this issue.
    Thanks,
    GJ

    Hi,
    I used this method with success in a number of dashboards, it should work also in your case.
    I defined the dashboard prompt to have column values defaulted in some way (by means of specifying explicit values, using SQL results or variables, etc - the method does not matter).
    I built the dashboard page including prompt and analyses.
    Then I run the dashboard page and, without doing anything other, I collapsed the sections I wanted to start as closed and saved as shared customization.
    It does work fine in my case, the prompt works as specified.
    Hope this helps,
    Cristina

  • Issue with Presentation Hierarchy in obiee 11g

    Hi Guru's
    I am using a presentation hierarchy in obiee 11 g, but it is behaving weirdly when expanding the hierarchy
    for example i have a hierarchy for languages when i expand one country in the hierarchy all the countries which has similar childs are getting expanded
    for Example Parent A B C D
    under A i have 1, 2,3,4, under B i have 5,6,7,8 under C i have 9, 10 ,11, 12 under D i have 1, 13, 14, 15
    so when i expand A in answers D is also getting expanded as i have 1 as common value in both the parents.
    can some please help me how to fix this, as the user does not like this expansion
    Thanks in advance,

    That is strange... I downloaded the files from the left hand side of this page:
    [Sample Application site|http://www.oracle.com/technetwork/middleware/bi-foundation/obiee-samples-167534.html]
    ... the title states quiite clearly that the Sample Application (Build 825) applies to OBIEE release 11g.
    Best regards
    Juan Algaba Colera

  • Presentation Variable in obiee 11g

    Hi all ,
    I had a dashboard report with year , quarter , month and order type name as prompts .
    Now my client requirement is , when order type name is "Ord" , the reports with order type name starting with 'ORD" should be displayed.
    In simple i know we will use " Like" operator .
    But now my problem is we have to assign a presentation variable for order type name.
    So can some one tell me how to add a presentation variable in OBIEE 11g , i tried in web , but none of it helped me to finish the job ,, since i am very new to obiee can some one please explain me in non technical language
    Thank you for your help

    Hi Jay , Thank you very much for reply , now i got a little idea , but few doubts abt ur reply .
    Yes i will edit dashboard prompt and assign a like operator and will save the prompt , but when editing the report , you said to apply a filter *LIKE @{presentation_variable}{default_value}%*
    In the above what will be in place of presentation_variable and what should be in default_value.
    I have tried it in this way : Like @{Sales Order Lines Order Type Name} , where Sales Order Lines Order Type Name is my dashboard prompt .
    but it didn't worked when i have given 'Ord' in dashboard prompt the error says: Sales Order Lines Order Type Name is LIKE (pattern match) ord

  • BW 3.5 - Issue with formula variable with replacement path

    Dear experts,
    I'm facing an issue with formula variable with replacement path.
    Just to clarify, I know replacement paths is raising a lot of questions but I've been using this functionnality extensively in the past, both in 7.0 and 3.5, so I'm not looking for basic information about how to use it.
    I'm trying to setup a simple report that would show total values per plant of Purchase Order < 100 €
    To do so I've setup a calculated key figure as follow:
    VAR1 * ("PO value" < 100 ) * "PO value"
    VAR1 is a formula variable with replacement path on 'purchase order' and value attribute 'constant =1'.
    (The report has to show values summarized by plant but should not show the detail PO by PO, so I'm not looking at a solution based on condition)
    The report as characteristic "plant" in rows and my CKF in columns.
    Now let's take an example. I have 3 POs in Plant 1:
    PO1 -> 150€
    PO2 -> 90€
    PO3 -> 80€
    Because of the variable with replacement path, the result in my query should be:
    plant1 = 170 (even though characteristic "purchase order" is not in my rows, system should evaluate PO one by one and return values only for those two that are below 100).
    But the result coming is 320, which is wrong.
    I've done the same report on many other 3.5 systems and it worked perfectly, and I am not able to get proper support from SAP OSS who keep saying that this functionnality is not ready in 3.5 (although I've provided screenshot of this working on another 3.5 system!!! how frustrating...)
    They have also pointed to problems of Before and After aggregation but that has absolutely no impact. Once again, the scenario is working perfectly on other 3.5 systems with the same query design, so i'm sure it has nothing to do with Query Designer options.
    Would anyone have ever come to an equivalenet problem? I'm wondering whether the DB itself could not play a role in the variable with ref  characteristic 'constant =1' ...
    Any though is welcome!
    thanks

    Hi,
    The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
    To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
    Regards,
    Patricia

  • Error while using between operator with sql stmts in obiee 11g analytics

    Hi All,
    when I try to use between operator with two select queries in OBIEE 11g analytics, I'm getting the below error:
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Location: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <select>: Syntax error [nQSError: 26012] . (HY000)
    can anyone help me out in resolving this issue.

    Hi All,
    Thank u all for ur replies, but I dint the exact solution for what I'm searching for.
    If I use the condition as
    "WHERE "Workforce Budget"."Used Budget Amount" BETWEEN MAX("Workforce Budget"."Total Eligible Salaries") AND MAX("Workforce Budget"."Published Worksheet Budget Amount"",
    all the data will be grouped with the two columns which I'm considering in the condition.
    my actual requirement with this query is to get the required date from a table to generate the report either as daily or weekly or monthly report. If I use repository variables, variables are not getting refreshed until I regenerate the server(which I should not do in my project). Hence I have created a table to hold weekly start and end dates and monthly start and end dates to pass the value to the actual report using between operator.
    please could anyone help me on this, my release date is fast approaching.

  • Date Variable in Obiee 11g

    Hi All,
    I have created a dynamic repository variable that gives the current date. The date is given in the following format 'MM/DD/YYYY'. This is format that I want the date to appear in. In the presentation catalog, I have created a presentation variable dashboard promt called StartDate, that defaults to the repository variable CurrentDate. I have also created a report that has a number of measures filtered in different ways. If we take one of the measures in the report, what I have done is edited the formula to filter the measure by reported_date>Date'@{StartDate}'.
    Now when I got and see my dashboard I get an error, 'Datetime value 06/07/2011 from 06/07/2011 does not match the specified format'. However when I click 'Apply' on the prompt, the error does not appear and it just says that there is no data for this report.
    Can someone please help me solve this problem?
    Thanks,
    Nikita

    I solved this issue by using steps listed here http://gerardnico.com/wiki/dat/obiee/cast_as_date.
    Thanks

  • Issue in Dashboard Prompt of OBIEE 11g

    Hi,
    I had recently migrated from OBIEE 10g to OBIEE 11g.
    I had found that there are lot of things which were working on OBIEE 10g are not working in OBIEE 11g.
    For Eg:
    I have scenario where i have 2 dashboards with different dashboard prompts.
    - *1st Dashboard*: I have prompt with 4 columns Year, Month, Qtr and Week. I can filter the data based on the selection of prompt.i.e Summary Report showing all KPIs and when clicked on the any of the KPI it goes to Below report which shows the graphical view of past weeks data.
    - Report: Here i show all the week Ids in the Graph format and when clicked on the any week id it navigates to 2nd Dashboard(below) with appropriate week populated in the prompt and show the detailed records.
    - *2nd Dashboard*: I have prompt with 5 columns Year, Month, Qtr, Week and Day of the Week with some detailed report. Here the only Week Id should be pre populated and show data based on the week id selection in the above report.
    The issue here in OBIEE 11g is, The month Id which was selected in 1st Dashboard prompt is also getting pre populated into the 2nd dashboard prompt. Which should not happen.
    Note: This was working fine in OBIEE 10g.
    Is there any way to fix this issue in OBIEE 11g.
    Regards
    Shyam
    Edited by: user9954342 on Dec 23, 2010 2:01 AM

    Hi Bala,
    Thank you for your response.
    I had tried that and resolved my problem but it was impacting other reports i.e
    I have other reports in 1st Dashboard with different tabs, Here i want the prompt value to be persisted across the reports in same dashboard so that when i go to other tab with in same dashboard the prompt value should be pre-populated and the data should be filtered against that.
    Now if i change the scope to page then i will be loosing this functionality.
    It was working on OBIEE 10g and i lost this after migrating to OBIEE 11g.
    Can you please help me in this regard.
    Regards
    Shyam

  • Bind variable in OBIEE 11G

    Hi,
    Is there any bind variable concept in OBIEE 11g.
    If it is not there then how to achieve this.How to write a where clause to get the result set dynamically.
    Thanks-Bhaskar Gouda
    Edited by: 961171 on Sep 25, 2012 12:44 AM

    Hi,
    I can make use of repository variable ,but my scale marker doesn't get changed .I am giving all the details .Please help me if you can.
    My scale marker SQL Query is as below.
    select trucks.factrucks
    from "plant model"
    Now i want to add a where clause say:
    select trucks.factrucks
    from "plant model"
    where truckid=:p_truckid;
    How can i do this and pass the parameter from go_url.Please help me out.
    Thanks-Bhaskar

  • Help with displaying BLOBs in OBIEE 11g

    I am trying to get OBIEE 11g to display photographs in an Analysis report. I know BLOB fields are not supported, and I have been reading posts on this board and following examples on internet sites that try to get round this problem. But, try as I might, I cannot get those pesky photos to display.
    Below are all the steps I have followed. Sorry that there is a lot to read, but I was hoping that somebody has been successful in doing this, and may spot something in one of my steps that I am doing wrong.
    ORACLE TRANSACTIONAL SOURCE_
    Table : EMPL_PHOTO
    Fields:
    USN VARCHAR2(11) ( Unique Key )
    EMPLOYEE_PHOTO BLOB ( I think the photos are stored as 'png' )
    ORACLE WAREHOUSE SOURCE_
    Table : D_PERSON_PHOTO_LKUP
    Fields :
    PERSON_KEY     NUMBER(38,0) ( Primary Key - Surrogate )
    USN     VARCHAR2(11)
    PHOTO     CLOB
    BLOB to CLOB conversion.
    I used this function :
         create or replace function blob_to_clob_base64(p_data in blob)
         return clob
         is
         l_bufsize integer := 16386;
         l_buffer raw(16386);
         l_offset integer default 1;
         l_result clob;
         begin
         dbms_lob.createtemporary(l_result, false, dbms_lob.call);
         loop
         begin
         dbms_lob.read(p_data, l_bufsize, l_offset, l_buffer);
         exception
         when no_data_found then
         exit;
         end;
         l_offset := l_offset + l_bufsize;
         dbms_lob.append(l_result, to_clob(utl_raw.cast_to_varchar2(utl_encode.base64_encode(l_buffer))));
         end loop;
         return l_result;
         end;
         select usn, employee_photo ,
         BLOB_TO_CLOB_BASE64(employee_photo)
         from empl_photo
    IN OBIEE ADMINISTRATION TOOL_
    *1) Physical Layer*
    Added D_PERSON_PHOTO_LKUP from Connection Pool
    Left it as 'Cachable'
    Didn't join it to any tables
    Changed field PHOTO to a 'LONGVARCHAR' length 100000
    Set USN as the Key ( not the surrogate key )
    *2) BMM Layer*
    Dragged D_PERSON_PHOTO_LKUP across.
    Renamed it to 'LkUp - Photo'
    Ticked the 'lookup table' box
    Removed the surrogate key
    Kept USN as the Primary key
    The icon shows it similar to a Fact table, with a yellow key and green arrow.
    On Dimension table D_PERSON_DETAILS (Dim - P01 - Person Details) added a new logical column
    Called it 'Photo'
    Changed the column source to be derived from an expression.
    Set the expression to be :
    Lookup(DENSE
    "People"."LkUp - Photo"."PHOTO",
    "People"."Dim - P01 - Person Details"."USN" )
    Icon now shows an 'fx' against it.
    Note: This table also had it Surrogate key removed, and USN setting as primary key.
    *3) Presentation Layer*
    Dragged the new Photo field across.
    Saved Repository file, uploaded, and restarted server.
    ONLINE OBIEE_
    Created a new Analysis.
    Selected USN from 'Person Details'
    Selected Photo from 'Person Details'
    Selected a measure from the Fact table
    Under column properties of Photo ( data format ) :
    - Ticked 'Override Default Data Format' box
    - Set to Image URL
    - Custom text format changed to : @[html]"<img alt="" src=""@H"">"
    Under column properties of Photo ( edit formula ) :
    - Changed to : 'data:image/png;base64,'||"Person Details"."Photo"
    The Advanced tab shows the sql as :
         SELECT
         0 s_0,
         "People"."Person Details"."USN" s_1,
         'data:image/png;base64,'||"People"."Person Details"."Photo" s_2,
         "People"."MEASURE"."Count" s_3
         FROM "People"
         ORDER BY 1, 2 ASC NULLS LAST, 3 ASC NULLS LAST
         FETCH FIRST 65001 ROWS ONLY
    Going into the 'results' tab, get error message:
    +State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 17001] Oracle Error code: 932, message: ORA-00932: inconsistent datatypes: expected - got CLOB at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)+
    It doesn't seem to be using the Lookup table, but can't work out at which step I have gone wrong.
    Any help would be appreciated.
    Thanks

    Thanks, yes I followed http://docs.oracle.com/cd/E28280_01/bi.1111/e10540/busmodlayer.htm#BGBDBDHI, but when I get to the part of setting the LOOKUP function on th Physical source, only ONE physical source is displayed. I need TWO sources ( The Employee Table, and the Photo LookUp.
    I have raised this as an error with Oracle. We are now on OBIEE 11.1.1.7, but Oracle say BLOBS are still not supported in that release. It will be fixed in 11.1.1.8 and it will be backported into 11.1.1.6.11
    In the meantime we have abandoned showing Photo's in any of our reports.

  • How to pass the prompt value to repository variable in obiee 11.1.1.7

    Hi All,
    I am given a tabular report to build in OBIEE 11.1.1.7 version using insurance data.
    I have to show different types of claim names and their corresponding count in the table. One of the calculations require me to use the total no of claims(i.e sum of all the claims).
    Example:
    Total No of claims: 600
    Total No of Auto Claim: 60
    I have to create a table on Auto Claim like:
                   claim types       count
                        X                    10
                        Y                    20
                        Z                    30
    I was calculating total no of claims by using dynamic repository variable as it was a constant value. Example: repository_variable1: select count(claim ID) from Insurance; In report I was just using value of (repository_variable1)
    Now client has asked us to give date prompt so the total no of claims (assumed as 600) will change with respect to period. I can calculate total no of claims with respect to different claim type (as shown in the table above) with respect to period filter in the report.
    The problem I am facing now is, I need the count of all the claims on a partucular period too. Repository variable is giving always calculating the count as 600. But the count should change with respect to period selected. How to get this value?
    Can I create a presentation variable in the prompt and pass this value as an argument for repository variable?
    Please help. I am in urgent need of the solution.
    Thank you.

    Hi Srini,
    I tried creating it as metric. But the problem is my pivot table is on Auto Claims.
    Let me try to make myself a bit more clear.
    Total No of claims in fact table: 600
    Total No of Auto Claims in fact table: 60
                    claim types(auto claims)       count        Calculation
                        X                                        10             10/600
                        Y                                        20             20/600
                        Z                                        30             30/600
    So I need to access total no of claims to calculate. I cant use a metric as the count will take group by with respect to auto claim type and give value only for X claim.

  • Issue with Report Links in OBIEE

    I'm facing a issue with report links(modify,printer friendly,refresh etc) in obiee
    The reports which are set as "Display Results-->Embedded in Section" for those reports if I put report links(modify,printer friendly,refresh etc),the links do not show up.In the palce of link I can see "-"(minus sign) appearing.
    If I change the report to "Display Results--->Show as link in seperate window" the lniks show up fine.
    Any idea why this is happening?
    Your suggestions are welcome.
    Please help
    Regards.
    Edited by: 810008 on Apr 14, 2011 1:39 AM

    Edit Dashboard -> Report Properties -> Report Links... (directly under Display Results) -> Customize
    M.

  • Issues with Shared Variables in Systems Running for Extended Periods of Time

    I am designing a large SCADA system using LabVIEW DSC and cRIOs. My plan is to use shared variables to communicate the majority of the information across my network (much like "tags" in a normal SCADA system).
    I'm wondering if anyone has experienced issues (connection failures, etc...) with shared variables running on systems for months (both real-time and windows based PCs) without the cRIO or PC being restarted/redeploying the variables. What is the stability of the Shared Variable Engine over extended periods of time?
    Thank you for the input.
    --CLD--
    LV 6.1, 8.6.1, 2011 SP1, 2012 SP1

    I have a system with 2 cRIO's each with Ethercat extension chassis.  Each cRIO hosts ~100 NSV's and is running the scan engine at 40 Hz.
    Each cRIO is coupled to a HMI that has front panel control bindings to NSV's hosted on the cRIO as well as a windows hosted mirror library (used for citadel db logging) that is also bound to the cRIO NSV library.  The cRIO's have monay months of contiguous run time without reboot and I closely monitor cpu and memory usage and also rt performance metrics and will log faults if there are any such events.  I also use NSV's for messaging from the HMI to the cRIO for such things as setting zero offset values and deploying configuration parameters.  My overall findings are that the SV engine and the PSP are stable and efficient (especially NSV<->NSV and NSV<->HMI binding)

  • Question regarding GO URL link with &Action=Navigate in OBIEE 11g

    Hello All,
    Actually I am working with the GO URL Links in OBIEE 11g.When I am trying to use the link as
    &Action=Navigate&p0=3&p1=bet&p2="Time%20Periods".Date&p3=2+ '01/01/2011'+'01/31/2011'
    The data is not getting filtered.It is giving me all the data which I don't need also..Is this a bug or am I doing any mistakes..Please let me know..

    Actually I have a few parameters or filters and I am using those filters in the GO URL Link but that filters when I am applying in
    &Action=Extract it is working properly.But When I am trying the same with &Action=Navigae it is not gining me the results what I want..

  • Data and Dashboard Security using ROLES Variable in OBIEE 11g

    Hi all,
    I'm currently using OBIEE 11g. I'm wondering how to implement the security for data and dashboard in the 11g.
    Below is the sample of how the security matrix requirement when I use the 10g version. In 10g, we usually use GROUP (for the data filter in RPD) and WEBGROUPS (for dashboard objects) variables in my initialization block to read from database. As we have 2 different variables, it is possible to control security separately for data and dashboard.
    GROUP | Country
    G1 | US
    G2 | FR
    G3 | UK
    WEBGROUPS | Dashboard
    WG1 | D1
    WG2 | D1
    WG3 | D1
    WG1 | D2
    WG2 | D2
    WG1 | D3
    WG3 | D3
    WG3 | D4
    Now, in 11g, the recommendation is to use ROLES variable (for application role). So, how would I apply the required security matrix above in 11g using just ROLES variable? Do I still create G1, G2, G3, WG1, WG2, and WG3 as application roles then only use G1-3 in the RPD to filter the data and only use WG1-3 in the analytics to serve as webgroups?
    Any advice on this? Thank you very much.

    "...Could you elaborate more?"
    I mean that role creation and user->role assignment will be managed outside of to the obiee interface - whether that's via the database, LDAP, fmw etc.
    Webgroup creation and assignment is managed within the obiee interface and I think that has a lot of benefits - generally you have people responsible for shared folders and dashboard creation, so having them responsible for webgroups and presentation permissions is preferable for me.
    "are you saying that I use the role G1-3 only in the RPD, while using the role WG1-3"
    Yes .. I'm assuming you have something like
    G1 | US
    G2 | FR
    G3 | UK
    WG1 | Finance
    WG2 | Marketing
    WG3 | Sales
    Which becomes
    R1 | US
    R2 | FR
    R3 | UK
    R4 | Finance
    R5 | Marketing
    R6 | Sales
    And John belongs to R1 and R4, Fred belongs to R2 and R4 etc. So you would set your data filters against R1-R3 and use R4-R6 like webgroups in the presentation services.
    Regards,
    Robert

Maybe you are looking for