How to configure Level Number of Elements in Dimensional Hierarchies?

http://gerardnico.com/wiki/dat/obiee/bi_server/design/dimension/level_number_dimension
Above mentioned link mentions the value to be placed in Level Number of Elements in Dim Hierarchies.But being New to Obiee I am unable to understand.I would appreciate if So one explains in detail.Example would be better.
Thanks in advance for the cooperation.
Edited by: user8655160 on Jul 23, 2009 11:46 AM

Query optimization is based on the order of the tables in the FROM clause of the generated SQL. Tables with many rows appear before tables with fewer rows. This order can be important especially for RDBMS that lack an optimizer feature.
It's no more the case with the actual databases.
Example for Oracle : Query optimizer
http://gerardnico.com/wiki/database/oracle/query_optimizer/start
By modifying the number of element, you can change their order in the FROM clause but I never test it.
Cheers
Nico

Similar Messages

  • How to get the number of elements in DB

    Could you tell me how to get the number of elements in DB??
    My code to get the number is below, but I think it is not efficient
    DB->cursor(DB, NULL, &cursorp, 0);
    while ((ret = cursorp->c_get(cursorp, &key, &data, DB_NEXT)) == 0)
    count++;
    --------------------------------------------------------------------------------------------------------------

    Hi,
    The most efficient way to get a count from the database is using the DB->stat API (http://docs.oracle.com/cd/E17076_02/html/api_reference/C/dbstat.html)
    The code will be something like:
            DB *dbp;
            DB_BTREE_STAT *statp;
            int ret;
            /* Print out the number of records in the database. */
            if ((ret = dbp->stat(dbp, NULL, &statp, 0)) != 0) {
                    dbp->err(dbp, ret, "DB->stat");
                    goto err1;
            printf("%s: database contains %lu records\n",
                progname, (u_long)statp->bt_ndata);
            free(statp);The code comes from the example included in the distribution at examples/c/ex_btrec.c
    If the database isn't a btree, you should update to the appropriate statistics structure and field.
    It's worth noting that retrieving the count is never a "cheap" operation. The count is not stored in the database - since doing so introduced a single point of contention that creates a bottle neck.
    Regards,
    Alex Gorrod
    Oracle Berkeley DB

  • In OBIEE RPD hierarchy,while defining levels  Number of elements count?

    Whats the importance of NUMBER OF ELEMENTS AT THIS LEVEL (count) while defining the hierarchy level.Does I need to enter the MAXIMUM distinct values of any element in that dimension table.If Yes how will that value gets updated when data in DB changes.Or can I mention depending on level count too like Level 1(1),Level2(2) ...

    use search functionality of the forum
    Re: Estimate Levels

  • How to get the number of elements in a tilelist

    I'm writing test cases for a flex application using FlexSelenium and I need to get the number of elements displayed in the tilelist.
    I know that that the tilelist is fed by an array. but i can't access that array from my test case.
    Can anyone tell me how I can get the number of elements in a tilelist on the application? which property of the tilelist can provide that number?

    try tileList.dataProvider.length;

  • How to set the number of elements dequeued?

    Hello All,
    I am relatively new to LabView. I use LabView 8.2 to detect Joystick movement using a set voltage threshold. Totally, I have 6 channels of analog input. The sampling rate is 2 Kilo Hertz with continuous sampling mode (buffer size set to 10 Kilo Samples). I show a visual stimulus on a computer monitor. Within  3 seconds from stimulus onset, the subject has to press the joystick. So I use a while loop that runs until the subject moves the joystick in any direction as detected by crossing of voltage threshold. The while loop was intended to run for a max of 3 sec if joystick was not moved. My intention while using the vi (see below) was to continuously monitor the voltage signal by means of removing voltage data points from the queue by the labview function/vi - "dequeue element". When I dequeue from inside the loop, the dequeue function removes about 100 msec worth of voltage data points ( = 198-201 points; sampling rate -2Khz) from each of the six channels. This creates problem for me because a single dequeue operation takes 40 to 85 msec during which the loop cannot be stopped. This results in miscalculation of the actual time when the joystick was moved.
    Is there a way to set how many data points the dequeue function removes? My goal is to remove about 1-2 msec worth of data points so that the loop can exit within under 5msec of the joystick movement.
    I have attached the screen shots of the subvi's I am using.
    Acquire Response.jpg - the while loop that has the subvi: Access Analog Data Queue
    Access Analog Data Queue.jpg - front panel of the subvi that has the 'dequeue element' function.
    Remove Element.jpg - a case of Access Analog Data Queue.vi showing the 'dequeue element' function
    Sorry for the long message. Any help would be greatly appreciated.
    Thanks
    Mani
    Attachments:
    Remove Element2.jpg ‏135 KB
    Acquire Response1.jpg ‏266 KB
    Remove Element1.jpg ‏135 KB

    Hello Lynn and tst,
    Thanks for your suggestions. I have attached a screen shot of a vi that has the enqueue function. As Lynn pointed out, it was the enqueueing size that was reflected in the size of the dequeueing. I tried various ways to control the enqueue element size in order to control the dequeue element size. Many of my tricks failed. I had set the data acquisition to be continuous at 2kHz with 10Ks buffer size. You may want to look at the attached image of the subvi "Analog Acquisition" while I explain my attempts. The first thing that I noticed was the 'dt' value in the input node of the timed loop which had been set by somebody to 100. I thought that was part of the reason why my dequeue size was always worth 100msec data points. So I changed it to 1 msec. This definitely made a difference in the chunk size of the dequeued element. Now dequeueing removes only data points worth 1 - 5msec. I also noticed that my data reading timer loop(the while loop in "Analog Acquisition" picture) takes about 20 -25 msec instead of the set 1 msec.
    Why does the loop take so long? I have set the 'number of samples per channel' to -1 so that DAQmx read.vi (see it in Analog Acquisition subvi block diagram) can grab whatever data is available currently and put that into the queue. Can this be a reason why the loop takes more than 20 msec? I also tried to set the number of samples per channel to 2. I reasoned that with the sampling rate of 2KHz, 1ms loop should be able to pull 2data points and enqueue them. But it gave me the much-often-seen error code ":Error -200279 occurred at DAQmx Read (Analog 1D Wfm NChan NSamp).vi:1->Timed structure(s): DAQ Loop". I tried various combinations of loop time and number of samples per channel. I get Error-200279 very often. Note that I have several state transitions and only in a couple of them during every cycle of state transitions, I remove elements and flush the data queue (one place where I remove elements is shown in my original message in the picture-'Acquire Response.jpg').
    How do I set the data acquisition loop to enqueue elements for exactly 1 msec or n msec so that I can control my dequeue size?
    Thanks a lot, I am getting really tired of fixing this problem. Please help.
    Mani
    Attachments:
    Analog Acquisition.jpg ‏363 KB

  • How to configure the number of weeks in a calendar

    I was very convenient to use in a calendar week numbers as I plan all my activities for the week ahead. The calendar iphone 3GS is not the numbers of weeks. Is it possible toadjust them somehow?

    Hi,
    According your post, I know you would like to set the item display limit in Status List web part.
    In the web part, the number of items to display is based on the view which you selected when configuring the web part. The default view for status list is status list view.
    However, I am not able to limit the items’ display number of the status list view. After changing the items limit, the list item displayed would not match the number specified by Item Limit. Thus, it is not possible to limit the number
    of items in the Status list web part.
    It could be a potential issue in SharePoint 2010.
    We will log this issue to our suggestion box. As after the submission, we may not have any time guarantee when the fix may be released, but it may come out on next cumulative update.
    Appreciate your time and efforts.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • How to configure the number of icons to appear on the grid?

    Just curious. Is there a way to configure the Application Grid on my leopard dock such that it displays the applications in a X by Y number of icons. Thanks.

    The Dock itself displays only a single line of icons either across the bottom or down the side of the screen. If you have too many icons to fit neatly a couple options exist.
    1) Some people put aliases of their applications into a folder (or more than one) and then place the folder(s) in the Dock. By clicking on the folder you can see what's inside and launch a program.
    2) There are a couple programs that extend the Dock. Some let you swap Docks with a keypress or mouse click and others are programs that launch quickly from the Dock.
    3) Dock alternatives exist as well. I use a program called DragThing - it is a Dock on steroids and does exactly what you want - puts programs in a grid. It doesn't replace the Dock, I just keep the Dock hidden and pretty much pretend it doesn't exist.

  • Number of elements  to  be defined at  logical level

    In the Business Model and Mapping layer, dimension >Logical Level >> number of elements at this logical level
    I have come across two different version of how to deal with this
    First version - From the OBE and the admin server guide it says "The number does
    not have to be exact, but ratios of numbers from one logical level to another should be accurate".
    Second Version - a question from asked about what defines the number at the level as best practices
    To set the number of elements at each level of a dimension, which number would you use?
    A. the number of columns in a logical table
    B. the number of levels in a dimension
    C. the number of dimensions in a business model
    D. The number of tables in a physical model
    E. the number of distinct rows in physical column
    Question is
    what is the rule to set the number of elements at this level?
    If its been set depending upon the rows in the table . what will happen if the rows gets added every hour ??
    Edited by: ZSAM on Jun 8, 2011 7:06 AM
    Edited by: ZSAM on Jun 8, 2011 8:22 AM

    The ratio between the levels is what is important I believe. BI Server will use this information to determine which aggregate source to use. You should use the number of distinct rows as the value.
    You can also right click the hieracny and use "Estimate Levels" to auto-populate the numbers for you.
    Paul

  • How to set the number of hidden layers for neural network?

     I am using "Multiclass Neural Network" to build a model. I can configure number of hidden nodes, iterations etc., but I couldn't find anything to configure number of hidden layers. How to configure the number of hidden layers in Azure ML?

    Here is the article describing it - https://msdn.microsoft.com/library/azure/e8b401fb-230a-4b21-bd11-d1fda0d57c1f?f=255&MSPPError=-2147217396
    Basically, you will have to use a custom definition script in Net# (http://azure.microsoft.com/en-us/documentation/articles/machine-learning-azure-ml-netsharp-reference-guide/)
    to create hidden layers and nodes per hidden layer

  • Set number of elements in a two dimensional array

    Hi,
    Does anyone know how to set the number of elements in a two dimensional array directly in teststand.
    To set a one dimsional array is simple:
    SetNumElements( locals.somearray,4)
    Is there a method to do this for a two dimensional array?
    Sean

    From the help file (TestStand 4.2.0):
    PropertyObject.SetNumElements
    SetNumElements Method
    Syntax
    PropertyObject.SetNumElements ( numElements, options = 0)
    Purpose
    Sets the number of elements of a single dimensional array.
    Remarks
    This method is only valid for single dimensional arrays. The elements in the array retain their values. Use the PropertyObjectType.ArrayDimensions property to set the number of elements in each dimension of a multi-dimensional array.
    Parameters
    numElements As Long
    [In] New number of elements for the array.
    options As Long
    [In] Pass 0 to specify the default behavior, or pass one or more PropertyOptions constants. Use the bitwise-OR operator to specify multiple options.
    This parameter has a default value of 0.
    So you could use, for example: Locals.MultidimensionalArray.Type.ArrayDimensions.SetBounds({1,0},{3,4}) to set an array to have three dimensions (1,2,3), each with five elements (0,1,2,3,4).

  • Get the number of elements in Array

    Hi everyone,
    Could anyone give me idea on how to get the number of elements in an Array (not number of rows) ?
    I tried to find that in both property node and array functions but nothing.
    Thanks,
    -Kun

    You are going to have to provide some proof that the Array Size does not work correctly. Right click on the input to it and select 'Create Indicator'. Run the VI. Go to the front panel and select 'Edit>Make Current Values Default'. Save the VI and attach it to your post.
    You can also check the array size yourself. Right click on the index display of the array and select 'Advanced>Show Last Element'. I will bet you that number shown is equal to Array Size -1.
    p.s. The number of elements in an array is equal to the number of rows in a 1D array. If you define the number of elements as anything else, you are mistaken.
    Message Edited by Dennis Knutson on 04-21-2009 10:40 AM

  • How to tell the number of licenses

    Is there any way (besides looking at the actual license.bea file) of telling how many IPs are being used. For instance, if I have the 5 IP eval license, can I tell how many are used and how many are free? Same with a PROD license? I know PROD licenses are unlimited, but it would still be nice to know.
    TIA

    No, we cannot use flist.length. That would return an
    exception of nullpointer...That means that file.list() returns null. That might result in if file.exists() returns false.
    Actually, this is a matter of how to get the number of
    elements in a String array.The member length of an array instance returns the length of the array (or the number of elements in the array, whichever way you want to express it). If the array is null, then you are trying to reference the length member of a null variable.
    You might want to do like so:
    File file = new File("c:\\");
    if(!file.exists())
    System.out.println("Non-existant file");
    else { File[] flist = file.listFiles(); // or String[] flist = file.list(); for JDK1.1
    System.out.println("Files: " + flist.length);
    }Tuomas Rinta

  • How to do budgeting at activity level and WBS element level in project syst

    Dear GURU's,
    Can any one please suggest me how to do budgeting at activity level and WBS element level in project systems, friends please I required set by step process.
    I need how to do this configuration to map this scenario.
    Regards,
    Bhanu

    Hi Bhanu,
    Use this link :
    http://help.sap.com/saphelp_45b/helpdata/en/86/98853478616434e10000009b38f83b/frameset.htm
    after page opens , click on BUDGET MANAGEMENT , There you will find each and every step you want .
    Thanks ,
    Dhruv Kumar Malhotra

  • What is the purpose of Number of elements at this level and ..?

    Hi,
    What is the purpose of Number of elements at this level an how it influences the obi server to optimize the query?
    Thanks in advance.

    Hello,
    Number of elements at this level, specify the number of elements that exist at this logical level.By mentioning this levels we are telling to the BI Server that it is a parent and the next level is a child.
    Mark if helps.

  • How to make mandatory(usr01) field for level 1 wbs elements only from CJ20N

    Dear All,
    I have made mandatory for "PRPS-USR01" field from CJ20N transaction
    by using field exit. But mandatory field (usr01) is working for all wbs elements. I want to make this usr01 field mandatory for  LEVEL 1(prps-stufe), WBS ELEMENTS(prps-posid) only. Not for level 2 and level 3 wbs elements. Please let me know how to fix it.
    urgent.
    Regards,
    Karthik.

    You could envisage the use of validation rules in PS.
    Transaction OPSI or SPRO
    Create a validation with a message ID (Z)
    Create a step
    - prerequisite : PRPS-STUFE = '001'
    - Check : PRPS-USR01 <> ' '
    affect a message number
    Regards.

Maybe you are looking for

  • Standard ALV Component in Web Dynpro Java

    Hi, Is there a standard Component available in Web Dynpro Java for ALV? Regards, Reema.

  • HOw to run Applet in browser.

    Hi guys. I've got 2 problems. 1. In Window, I've got Java installed (and using NetBean IDE as Java editor), so of course I've got j2sdk_nb-1.4.2 installed as well. But I couldn't run any applet in IE, for example, in games.yahoo.com, I couldn't join

  • Edit with note pad is missing under the File tab

    in fire fox 18.0.1 PC win 7 64 bit. When I installed the new fire fox on my new PC, I clicked on 'file' and on hte pull down 'edit with note pad' was not there. How do I get it back so I can edit me HTML files? Thanks for any help

  • Publishing iphoto album to mobilme gallery

    Is there anyway to make an iphoto album published to my mobil me gallery viewable for my kids soccer team, but the rest of the albums already there just viewable for family and friends?

  • How to make a .exe from form builder?

    Hi,there: How can i make a .exe from form builder which can run without form builder?