Multiple dynamic repository variable using one initialization block

I am trying to declare three dynamic repository variables var1, var2, var3. I want to have only one intialization block for all three.
The point I am confused at is when declaring vraibles, I can normally do
select x, y, z from table where expr1=expr2
and then x, y, z can give values to my three variables.
But in the above case the query is selecting three different things (different columns) from the same row in the database.
But in my case I want to select the same column from different rows.
for example
var1 will be
select x from table where expr1=expr2
var2
select x from table where expr1=expr3
and var 3
select x from table where expr1=expr4
1. Is it possible to do that.
2. Is it possible to dynamically name a dynamic repository varibale?
I use OBIEE-11g
Thank you
Edited by: user6287828 on Jan 26, 2012 9:41 AM

Hi,
I think the primary advantage of WITH clause is to resolve complex sub queries (I am sorry, I am mistaken here). But as per my readings and the BI Server too generating queries using WITH clauses, I think this is an optimized option to choose from in your case (I think there might be other queries too that can get your requirement solved though).
You may want to refer to http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:524736300346304074 for some info. The database experts say the usage is case-by-case and hence probably in your case if you want to populate 20 variables at one shot you in BI using this kind of query, you have to further evaluate the time taken by the sql etc or break it down again.
However, I think this certainly is an option here.
Hope this helps.
Thank you,
Dhar

Similar Messages

  • Error in repository variables use in initialization blocks on Solaris 64

    Hello,
    I noticed a strange problem on OBIEE 10.1.3.4.1 installed on Solaris 64: it seems that it cannot convert the string 'VALUEOF(+repository variable+)' into the actual value of the parameter.
    For example, this is an initialization block to populate current fiscal project date variables (from NQQuery.log):
    +++Administrator:fffe0000:fffe0c3e:----2010/04/12 12:29:29
    -------------------- An initialization block named 'Current Project Variables', on behalf of a Session Variable, issued the following SQL query:
    select C.MCAL_PERIOD_NAME as MCAL_PERIOD_NAME
    ,C.MCAL_PERIOD as MCAL_PERIOD
    ,C.MCAL_PER_NAME_QTR as MCAL_QTR_NAME
    ,C.MCAL_PER_NAME_YEAR as MCAL_YEAR_NAME
    ,PAGO.MCAL_PERIOD_NAME as MCAL_PERIOD_AGO
    ,QAGO.MCAL_PER_NAME_QTR as MCAL_QTR_AGO
    from
    VALUEOF(OLAPTBO).W_MCAL_PERIOD_D C
    ,VALUEOF(OLAPTBO).W_MCAL_PERIOD_D PAGO
    ,VALUEOF(OLAPTBO).W_MCAL_QTR_D QAGO
    where C.adjustment_period_flg = 'N'
    and C.W_CURRENT_MCAL_PERIOD_CODE = 'Current'
    and C.MCAL_CAL_WID=valueof(NQ_SESSION.MCAL_CAL_WID_PROJ)
    and C.mcal_period_ago_wid= pago.row_wid
    and C.mcal_qtr_ago_wid=qago.row_wid
    and c.mcal_cal_wid= pago.mcal_cal_wid
    and c.mcal_cal_wid=qago.mcal_cal_wid
    Returned 0 rows. Query status: Failure
    As you can see, VALUEOF(OLAPTBO) should be substituted by the repository session variable, but instead it seems that the BI Server simply issues to the database the initialization block statement as-is!
    Any idea?
    Thanks in advance for the help,
    Vincenzo Maggio

    As a test, I tried to add the filter to the individual user first. In the Repository I went under Manage-Identity. Clicked on my User and hit permissions button.
    I created the filter of:
    "Testing and Assessments"."Student SOL Testing"."Teacher Employee Number" = VALUEOF(NQ_SESSION."VAR_EMPLOYEE_NUMBER")
    That didn't work. I still see all data when I log in as that user. If I hard-code it to the users Employee Number (see below), it does work. What now?
    "Testing and Assessments"."Student SOL Testing"."Teacher Employee Number" = '19983758'

  • Regarding dynamic repository variable

    Hi Experts,
    I have made one dynamic repository variable. this variable calculates start date of week.
    i am using this variable in prompt as default value.
    the problem i am geeting its value is not getting refreshed. it shows static value that i have given in default initializer in
    rpd.i want its value gets changed in every week but it is not changing,its shows always default value that have
    given in rpd.
    Please share any solution to resolve this problem.

    Hi,
    Kindly use the below SQL syntax in the default selection of the dashboard prompt.
    SELECT CASE WHEN 1=0 THEN date_column else TIMESTAMPADD(SQL_TSI_DAY, -0, CURRENT_DATE) END FROM SH
    Regards
    MuRam
    NOTE: Please mention if this resolved your problem/still facing and close the thread.

  • Dynamic Repository Variables are not Refreshing in OBIEE 11.1.1.6

    Hi Experts,
    As of sudden the dynamic repository variables are not refreshing.
    The same rpd is working fine in Test Environment.
    If any change in the query of initialization block, it is fetching old result.
    Even after refreshing in Analytics page, still it is showing old value.
    Please help me in regarding this.
    Regards,
    Kallu.

    Make sure init block is pointing to right connection pool.
    whats the status in NQServer.log and NQQuery.log files?
    If helps pls mark

  • Is it possible to have multiple search results page using one Search Enterprise Center site?

    Hi,
    We're using SharePoint 2013 and I'm trying to modify the search results page for one site collection. By default, it uses the search results page from the parent site which is the search center being used by default for the web application. I need to make
    sure that the site collection will only retrieve search results within the site collection (search everything has to be disabled). I found a way but I had to create another search center site to accomplish this, otherwise, it will affect the search center
    site of all other site collections on the web app.
    Now is it possible to have multiple search results page using one Search Enterprise Center site?

    Hi,
    According to your description, you want to retrieve the search results within the site collection.
    As a workaround, you can create a custom result source for the site collection and you will retrieve the search result within the site collection.
    More information about how to create result source in SharePoint 2013, please refer to :
    http://technet.microsoft.com/en-us/library/jj683115(v=office.15).aspx
    http://techmikael.blogspot.com/2013/04/limiting-search-results-in-sharepoint.html
    Best regards

  • How to set MULTIPLE repository variables using presentation variables

    Hi,
    I need to pass multiple values from presentation variable to repository.
    A brief about report design :
    I have two repository variables - from_dt and to_dt which are defaulted to some values from a database table and are editable by the user.
    I display these default date values on the dashboard. Plus there are two dashboard date prompts allowing user to enter a date range different from what is displayed by the from_dt and to_dt. The dates entered by user are assigned to presentation variables pv_from_dt and pv_to_dt.
    If user specifies a different date range then these date values are to be passed to a stored procedure which is called from the Connection Pool --> Connection Script Tab --> Execute before query. This procedure will do some calculations and populate a global temporary table before running the report.
    Problem :
    Now in the presentation server, in the Advanced tab, in the Prefix section, when i try to write something like this:
    SET VARIABLE from_dt = '@{pv_from_dt}';
    SET VARIABLE to_dt = '@{pv_to_dt}';
    I get the foll error :-
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <SET>: Syntax error [nQSError: 26012] . (HY000)
    I tried all possible permutations and combinations
    SET VARIABLE from_dt = '@{pv_from_dt}',SET VARIABLE to_dt = '@{pv_to_dt}'; --- gave same error
    SET VARIABLE from_dt = '@{pv_from_dt}' SET VARIABLE to_dt = '@{pv_to_dt}'; -- gave same error
    How do we assign values to multiple reporsitory variables... ???
    Thanks
    Nusrat

    Hi,
    I wrongly referred to the variables as "repository" variables. Both variables are Session variables. For testing i added a column field in the report with source as the session variable - VALUEOF(NQ_SESSION.from_dt). In the Prefix section i assigned a literal value - SET VARIABLE from_dt='01-JAN-2012';
    When report is run, the literal value gets displayed.
    The idea to update a session variable, from dashboard using presentation variable, i got from the following URL.
    Go to http://oraclebizint.wordpress.com/category/obi-ee-plus/page/11/
    and see the section "Oracle BI EE 10.1.3.3/2 – Updating Session Variables from Dashboards using Presentation Variables"
    Thanks
    Nusrat
    Edited by: user10309945 on Jan 16, 2011 9:30 PM
    Edited by: user10309945 on Jan 16, 2011 9:59 PM

  • Init Block for Dynamic Repository Variables

    I have defined an Init Block in the RPD. I see that you can set the refresh intervals via a schedule that is a set time. I want to be able to trigger this Init Block once my ETL process has completed. Is there a way to externally trigger the Init Blocks ?

    We faced the same problem and I am sorry to say that OBIEE does not support this feature. There is no way to trigger a repository variable refresh from outside OBIEE. In the end we decided to set the refresh interval to 2 mins. This means that when new data is loaded then at most the variables will take 2 mins to refresh. We use repository variables to to store the latest business date our DWH has data for to drive dashboard and reports. Our Init Block query is very quick and while are constantly asking the DB the same query Oracle caches it's results so the bverhead is near to nothing.

  • Multiple Row-wise session Variable in One Init Block

    Hi All,
    Can we create Multiple Row-wise session Variable in the same Init Block ?
    I need 10 session varibales with row-wise initialization in the same block otherwise i will have to create 10 initialization block .
    Any help is appreciated.
    Thanks,
    Ally

    Hi Ally,
    I'm not sure if this will work but have you tried a UNION ALL statement?
    ie.
    SELECT 'GROUP, group_id
    FROM groups
    UNION ALL
    SELECT 'DEPT',dept_id
    FROM depts
    etc....

  • Override the GROUP system session variable within an initialization block

    Hi,
    We're trying to override the GROUP system session variable and having no luck. We've created an initialization block to return the semicolon-separated list we're looking for but when a user logs in, it seems like it is overridden with the default. When we change the name of the variable to something other than GROUP, it works great and we get the expected value. Is there something we're missing with overriding the particular value?
    Here is the query we're attempting to use for the variable:
    Select 'GROUP',
       ListAgg(OBI_ROLE, ';') Within Group (Order By USER_EMAIL)
    From CSS_OBI_USER_ROLE
    Where USER_EMAIL In (':USER')
    We also tried:
    Select
       ListAgg(OBI_ROLE, ';') Within Group (Order By USER_EMAIL)
    From CSS_OBI_USER_ROLE
    Where USER_EMAIL In (':USER')
    We made sure that the variable name was 'GROUP' as well.
    Not sure if it's important to note or not, but the returned values do correspond to existing applications groups already defined within OBI.
    Any help is greatly appreciated!
    Thanks,
    Jas

    since you have value as OpsReviewViewer;OpsReviewAuthor:BIAdministrator
    my not help row wise setting
    try to handle ; part using sql query so that you get those number of records to use row-wise
    so this
    Select 'GROUP',
       ListAgg(OBI_ROLE, ';') Within Group (Order By USER_EMAIL)
    From CSS_OBI_USER_ROLE
    Where USER_EMAIL In (':USER')
    with row-wise show work

  • Multiple Material Numbers to use one Info Record

    I have several material numbers that I have recently set up as Subcontracting special procurement. All of these numbers use one quote from our vendor. How do I assign multiple numbers to a single info record?
    Thanks for your assistance!!

    SAP knows 2 kind of subcontracting scenarios, a purchasing route and a production route.
    in the purchasing subcontract scenario you order the finished material with item category L, you can see the components in the purchase order and you consume the components when you post the goods receipt to  this purchase order.
    in the production route, you create production orders to "manufacture" the finished and to consume the components, the purchase order is only to procure the service. you do goods receipt and cosumption in reference to the production order, and you do a goods receipt for the service in reference to the purchase order.
    if the info record is without material number,then you cannot have a permanent  link to a material if you use the purchasing route.
    Usually SAP will propose the info record as source when you assign and process requisitions in ME57. I doupt that SAP will propose info records without material number for requisition with material number. so the only chance to assign such info record to a PO to get the price defaulted would be manual entry of info record number in ME21N (F4 search help is available)
    in the production subcontracting process you can enter the info record number in the recipe, so you can establish a permanent link in master data. So SAP exactly knows which info record price to pull for the service orders. and in this process you can enter one info record number in several recipes.

  • Multilevel dynamic approval process using precondition loop block

    HI,
    I am trying to create a multivel dynamic approval process using a precondition loop block. The structure of my process is,
    Process->1)Sequential Block containing requestor action->processor of requestor action is initiator
                2)Precondition Loop Block containing
                        i)Loop Decision action containing a business logic callable object
                        ii)Loop Body Block containing Approver action-processor of approver action is filled from context parameter
    The loop decision action implements the logic for loop decision. Can anybody help me by suggesting the proper target of each of these actions, and the processor for loop decision action?
    Whenever I am initiating the process, the requestor action is getting executed,  On completion of this action I am getting a message "No activity is currently selected", that is, it is not entering the precondition loop block.
    Please guide me with the proper process flow of this and how to adjust the roles and parameters
    Thanks,
    Swaralipi

    Posted another thread on the same issue

  • Multiple websites and applications using one user database

    I've got several applications and websites that will be built around one main application. In a perfect situation users will be able to register once and be able to log into the different applications and websites using that single account. The different
    parts will be:
    Main application (Windows application) that uses the account to get access to it's features and to the server.
    Second application with it's own specific tasks (Also a Windows Application) that uses the account to get access to it's features and to the server.
    Main website which is based on Wordpress. The website has a bbPress forum that would use the account.
    Data server which can be accessed for specific data using the account.
    Most of the data that the users have will be the same for the different applications and websites so to me it seems that having a database for each separate part would complicate things more than having one database for everything.
    My main concern is the Wordpress site and bbPress forum because of the fact that these already have their own account systems.
    What would be a valid approach? Using one of the existing databases from Wordpress or the forums with the risk of having a lot of Wordpress/bbPress specific data with the accounts or making a database especially for the other applications and websites and
    somehow linking those to the website and forum databases? Would the valid approach be secure for use by these different applications and websites?

    Moderators,
    Please look closely, I have already pointed it and you would find that ALL answers which Takken go is from Engsoochean. This is highly not possible its clear favoritism. There are couple of users who are marking ONLY HIS ANSWER and ONLY VOTING HIS POST helpful.
    I am not saying answer is incorrect but question is not relevant to Databse design.
    I have ONLY UNMARKED the answer as I want other moderators to have a look and then they can mark the answer.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Multiple devices on iCloud using one account

    with only 1 apple account and multiple family members using iOS devices and iCloud, changing data on one device changes it on all of them, how can i separate the devices?

    Hi Hammers1.
    From what I understand you want to all use the same iCloud Apple ID for:
    - Find my iPhone
    - Calendars (diary)
    - Photo Stream
    You want to be able to have separate:
    - Contacts
    - FaceTime accounts
    If that is correct you can do the following:
    1. On each device under Settings > iCloud use the same Apple ID.
    - Enable Calendars, Find my iPhone, and Photo Stream (and any other data you want to share)
    - Do not enable Contacts. If it is already enabled and you choose to turn it off you will get an alert to keep or delete contacts. Removing them inthis method will only remove them from THAT device, not the account itself.
    2. Each member can setup their own iCloud account under Settings > Mail Contacts Calendars > iCloud and enable Contacts (and other data types depending) if they want. Or, they can just keep their contacts local on their device, sync through another service, etc.
    An article that may be of use is http://support.apple.com/kb/TS4020 which talks about using multiple iCloud accounts on one device, and what features can be used on two accounts at the same time. For example, a device can only use Photo Stream with one iCloud account, but can have two iCloud accounts syncing different calendar data at the same time.
    3. For Face Time, you can disable this or setup any other Apple ID on each device by going to Settings > FaceTime > tap the Apple ID and Sign Out.
    One thing to note also if someone decides to say, use the shared calendar and then their own calendar by setting up two iCloud accounts, they can set up the default calendar under Settings > Mail Contacts Calendar. This can help if they want to make sure events they enter on their iPhone only go to their calendar, and not she shared calendar. You can also edit this when creating each event indivudually as well but setting a default can save time.
    Your Apple ID can be used for several services onyour device. While it is nice to have the same Apple ID for everything, sometimes having more than one for different things is the way to go. Here is another article that may help:
    Apple IDs and iCloud
    http://support.apple.com/kb/HT4895

  • HT1495 Multiple logons for one computer and multiple devices trying to use one itunes account.

    I have one computer with a logon for Kids and one for Adults.  There is a touch and nano that was added to a single itunes account tied to my email on the adult logon and the shuffle that is on the kids account.  I can't seem to get the multiple devices access to all the songs with out erase and re-sync error message when not using the right device on the assigned logon to the computer - why and can we change this?

    It sounds like each Windows user has it's own iTunesLibrary.itl file.  If that is the case, then you are correct, the correct device must be connected when logged in with the correct login.
    If all Windows logins share an iTunesLibrary.itl file... then it does not matter which login is used or which device is connected.

  • Can I get multiple User-defined variables in one slide?

    I have used the user defined variables in the past to collect identifiying information on quiz results, as well as for quiz certificate.  I would like to re-use the variables in a couple of areas.  in my project, one slide will prompt the User Name (variable I created), second will prompt for User ID (variable I created).  I would like a third screen that reads "Confirm your previous entries", and I want it to show the two variables.  I am only seeing the first one.  Is there a way to get them both to display?
    I would also like to re-use both in the quiz certificate at the end.  If I edit the certificate widget in Flash, will both variable display?
    This quiz reports to me via email (we have no LMS).
    Any suggestions?
    Cyndi Nagel

    Hi again
    Did you shrink the screen shot before uploading? You're right. It's barely legible.
    If the variables are being inserted in more than one caption, have you double checked the timing? Perhaps something is pausing the slide before one of the captions has a chance to appear.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

Maybe you are looking for

  • Can't connect visa card for account

    I'm trying to connect to the VISA account. All enter correctly, but Itunes says that "Your credit card has not been confirmed. Enter credit card information true test." What's the problem?

  • "Indicator: GR-Based Invoice Verification" direct input Upld PO LSMW

    Hi, Im using lsmw direct input method. I am uploading the PO. But the GR Based invoice verification field was not checked ON. Im trying this using USER_EXIT in enhancement MM06E005, with EXIT_SAPMM06E_017. Any body can tell me how i can check ON the

  • Create Hyperlinks In Exported HTML Slideshow?

    I've created a presentation with Keynote 3 and would like words and objects to link to external web sites. The links work when the presentation is viewed using Keynote. But when I export to HTML the links don't work. Am I doing something wrong? Or is

  • Event handling using CAN?

    I am aware of how to make LabView respond to user interface events (keyboard presses, button presses, mouse moves, etc) and I'm also aware that the same event handling structure can be used to handle external (non-GUI) events- like those generated by

  • My Ipod Touch Shake & Steering Functions (motions) are not working

    I have had my ipod touch 32gb for 3 months now and in the last 48 hours, my shake function & steering function in apps & song shuffle and pretty much any motion function has stopped working. I am not getting any error messages either. I have turned o