Getting mid 50% in a query

In a query, I need to retrict a characteristic to the middle 50% values. That is, I should exclude the top 25% and bottom 25% values. How can I do this?

Hi Uday
My idea is just a small change in what others proposed
If you have hold on update rules,you can write a routine mapping keyfigure ( create new and add in cube for employees) and map this charecteristics coming from the source
Reload the cube/Init without data transfer and create conditions for the keyfigure for exclusion of top and bottom 25% to get median values
Regards
N Ganesh

Similar Messages

  • How to get the recordcount of a query in a array

    I have an array called "sums" that holds 4 query's, each
    query has a different number of records.
    Then i use this code to loop the records of the query inside
    the array:
    <cfloop index="x" from="1" to="#arrayLen(sums)#">
    <cfloop index="i" from="1" to="#sums[x].recordcount#">
    data to loop
    </cfloop>
    </cfloop>
    This results in 4 times 4 records, of course as i now use the
    array length in the inner loop.
    My question is, how can i get the recordcount of a query in a
    array so i can use that for the inner loop "to" value.
    Thanks.

    quote:
    Originally posted by:
    MarcovandenOever
    Does sums[x]recordcount point to the first query in the array
    sums when i use it like this?
    In the array there are four query's, i want to loop the
    array, then i want to loop the records of each query.
    <cfloop index="x" from="1" to="#arrayLen(sums)#">
    <cfloop index="i" from="1" to="#sums[x].recordcount#">
    data to loop
    </cfloop>
    </cfloop>
    No. It points to each query in turn. So if you have four
    queries, the first time it will point to sum[1]. Then next time
    sum[2], etcetera. It should work exactly the way you want "as is".
    If you are having a problem, it is probably related to the code
    inside your inner loop.

  • Getting below error while opening query in bex  3.5x

    Dear Guru's
    I am getting below error while opening query in bex  3.5x
    The following object were not found when accesing the server .
    Press repair to correct the problem (included parts of query deleted) press cancel to undo the last action.
    Regards
    Karan

    Hi,
    1) When a query administrator with the sufficient authorization (sap_all or the * authorization for the field in the authorization object) is creating the query in query designer including the 'attributes' which are not visible with the 'normal' authorizations, the query will not list the columns in the output when it is executed by the normal user.
    2) so create an authorization object for each of these attributes with * (full authorization)
    Regards,
    Marasa.

  • Can i get the history tab in query designer in bw 3.5 version

    can i get the history tab in query designer in bw 3.5 version plz help me.

    Hi,
    yes..
    do this..
    Go to SPRO->IMG->SAP NEtweaver->SAP BIW->Reprting-relevant Settings->General Reporting Settings in BEx->Activate personalization in Bex.
    Regards,
    San!

  • Get the output of a query in a textpad..

    Hi..
    I need to get the output of a query in a notepad..
    Can anyone help me..

    spool c:\emp.txt
    fire select * from emp;
    spool off;
    go to c: and check your text file.
    hare krishna
    Alok

  • HTTP-Post/Get method of calling the query service allows us to build URL

    Hi,
    I am new to webservices.i have requirement that, using a HTTP-Post/Get method of calling the query service that allows us to build an URL and if we call that url it wil populate XML object.i need query LDAP server for getting users manager details ,in request query we wil pass user details.thanks in advance..

    check same issue in java forum and this link:
    http://jakarta.apache.org/commons/httpclient/methods/post.html

  • Why am I getting midi conflict/sample rate errors. GarageBand 10 intel mac

    Why am I getting midi conflict sample rate errors with no connected midi device?

    Ok, I'll answer this myself. It has nothing much to do with midi devices being in conflict with anything. Nothing much to do with midi devices, as such, in fact. What it seems to be is a slow running system, whether it be processor, or hard disk, or whatever. In fact, when I found the cause of the problem, it was easy to solve.
    What I saw a few times throughout this episode, was an inacurate sample rate report, which caused Garageband to run and react slowly, causing stuttering and flutter in audio output, so that noises were produced as the program struggled to handle the data streams it was reading and trying to reproduce and output cohesively. All of that was caused, it seems, by my iMac overworking and getting a bit too hot for comfort, having run all day, and multitasking for a good deal of it. I didn't adjust I/O buffering, or take any of the usual 'advised action' I've read from other users.
    I simply saved my work and shut down the machine for an hour or two. When I restarted the machine, all had returned to normal. The lesson is, it seems to me, is minimise, or, stop other tasks the machine is carrying out. Safari, in particular, seems to be a major drain on resources, so work without it running. Shut down all unecessary programs and tasks, and run Garageband alone, when working in it. Garageband is a much tamer beast when it's left alone to do what you ask of it. It's quite a sensitive little soul. :-)

  • How to get this output using sql query?

    Hi,
      How to get this output using sql query?
    Sno Name Age ADD Result
    1 Anil 23 delhi Pass
    2 Shruti 25 bangalor Pass
    3 Arun 21 delhi fail
    4 Sonu 23 pune Pass
    5 Roji 26 hydrabad fail
    6 Anil 28 delhi pass
    Output
    Sno Name Age ADD Result
    1 Anil 23 delhi pass
    28 delhi pass

    Hi Vamshi,
    Your query is not pretty clear.
    write the select query using Name = 'ANIL' in where condition and display the ouput using Control-break statements.
    Regards,
    Kannan

  • Radio button getting unchecked when form in query mode

    There are 4 radio buttons on my form.Initially when the form is opened one radio button is checked.But when the form is in query mode that radio button got unchecked.Is there any way that the initial checked radio button remains checked even the form is in query mode ?
    Message was edited by:
    user496853

    Hi,
    Solutions given by Kevin and Zaibiman is not applicable for my form as the radio button will be in data base block only.This is the requirement of the form.
    The other solution given by Zaibiman was to set the radio button item when entered in query mode , i have tried that but that is also not working.
    Pranati,the solution given by you i have also tried that ,but that has not solved the issue,Radio button get unchecked when eneterd in query mode.
    Please elaborate and suggest.
    Thanks,
    Kirti

  • How to get Midi echo function?

    I can't get midi echo function: triggering contemporary 3 (or more) channels of a multi instruments. How can it be done?

    Hi mn,
    You still use contemporary (which means: of the same era/time in history) where you mean simultaneously (=at the same time). Try another translation site...
    If you want to trigger three channels I would probably make three tracks, each with the same region on it, all assigned to their own unique MIDI channel (1, 2 and 3 in this case). Then apply sufficient delay via the Inspector to the two 'echoing' tracks.
    Of course this is only editing after recording MIDI. If you want it 'live' (as you play), you'll need to go into the environment and create a note duplicating and delaying setup.
    But why use MIDI echo? You could simply use the *Delay Designer* to get the same (or probably better ) effect?

  • How to get constant Value through RSQL Query

    Is it possible to get constant value in rsql query?
    Eg: select bBU, 0 Dummy column, part_number from test_rs

    No. This is not available in IOP. What do you want to achieve using this?

  • Set/get variables with RSBBS from  query 1 to query 2

    Hi BW Experts,
    I created a sender/receiver assignment from query 1 to query 2 using RSBBS. For two characteristics I assigned the processing method by “Variable”. Process mode for these variables in the receiver query is by “customer exit”. But I don’t know how to set/get values of these variables.
    Is there any function module to do it ??
    Please help!!
    Dev

    thanks...but i m not used in RSBBS and i m afraid i m lost
    could anyone explain me in detail :
    - what i have to do for setting the sender & receiver,
    - before to set parameter ID in the sender how to get the information of the current line (which will serve for the jump)
    please help! i promise points
    Dev

  • How to get these Attribute class in Query Statement ?

    Hi All,
    I have 2 SCCM primary site, the first one is a migrated site from SCCM 2007 to SCCM 2012 SP1 & then upgraded to SCCM 2012 R2, the second one is a newly created SCCM 2012 R2 site.
    I was trying to create a collection membership rule using the query statement on the second site & i found there are attribute classes which were missing on this site.
    Under query rule /edit query rule in the criteria tab i am trying to define a new criteria with Criteria type : Simple value & then i click the select under "Where" for chossing the attribute class & a value called "Winlogon64"
    don't exists there. There are other classes which are missing too.
    then i go to my first site & i can see the classes there, collection query rule are also defined using the attribute classes.
    Now my questions are :-
    1. Does these settings gets migrated from SCCM 2007 to SCCM 2012 on the first site?
    2. How can we get this in SCCM 2012 R2 on the second site?
    Experts please help.
    Thanks,
    Pranay.

    It sounds a lot like you where using an extension on your hardware inventory. Changes to your hardware inventory are not migrated, so you would need to recreate that change in the hardware inventory.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Can't get IVI Power Meter error query to work properly.

    I have been trying to use the IviPwrMeter Error-Query.vi to read possible errors coming from the Power Meter.  However, I have found that no errors can be detected using this vi.  This is because the returned value 'status' is wired over to the 'error code' input of 'IviPwrMeter Error Converter.vi' and the status value will always be equal to VI_SUCCESS as the attached code signifies.
    All of this code was generated by either LabWindows/CVI and/or LabView.
    If I wire the error code output of 'IviPwrMeter_error_query' function to the error code input of 'IviPwrMeter IVI error converter.vi', the errors on the Power Meter is at least detected.
    Am I doing something wrong here or are there other work arounds?
    Source listing of driver call:
    ViStatus _VI_FUNC age4418b_error_query (ViSession vi, ViInt32 *errCode,
                                            ViChar errMessage[])
        ViStatus    error = VI_SUCCESS;
        checkErr( Ivi_LockSession (vi, VI_NULL));
        if (errCode == VI_NULL)
            viCheckParm( IVI_ERROR_INVALID_PARAMETER, 2, "Null address for Error Code");
        if (errMessage == VI_NULL)
            viCheckParm( IVI_ERROR_INVALID_PARAMETER, 3, "Null address for Error Message");
     if (!Ivi_Simulating(vi))                /* call only when locked */
         ViSession   io = Ivi_IOSession(vi); /* call only when locked */
         checkErr( Ivi_SetNeedToCheckStatus (vi, VI_TRUE));
         viCheckErr( viPrintf(io, "YST:ERR?"));
      viCheckErr( viScanf (io, "%ld,\"%256[^\"]", errCode, errMessage));
     else
             /* Simulate Error Query */
         *errCode = 0;
         strcpy (errMessage, "No error.");
    Error:
        Ivi_UnlockSession(vi, VI_NULL);
        return error;

    Dennis,
    I get the same results as you if I don't have a power meter connected.  However, this doesn't supprise me because the session handle is probably checked at a higher level.
    The calling hiearchy is as follows (I think, because I don't have all of the code)  IviPwrMeter Error Query.vi -> IviPwrMeter_error_query (IviPwrMeter.dll) ->age4418b_error_query (age4418b.dll).  I would guess that the session is validated in the second layer and not the bottom layer where the actual instrument error query is happening.
    Something you may try.  If you have any instrument, write a simple program to get a valid handle then call the error query using the error cluster to link them together.  Set a breakpoint before the error query, run the program, use MAX to send an invalid command and create an error.  Then resume your original program and see if an error is reported in the error cluster after executing the IVI error query.
    Bob

  • How does a Date Parameter get interpreted using an Oracle Query

    I have a SSRS Report which utilizes an Oracle Data Source and the following query...
    select TRIM(to_char(TO_DATE(:mydate),'Month')) || ' ' || TRIM(to_char(TO_DATE(:mydate),'YYYY')) as compare_month,
    cs.contract_nbr,
    m.hcfa_nbr,
    m.fname,
    m.lname,
    cs.group_nbr,
    cs.division_nbr,
    to_char(to_date(cs.ymdeff,'yyyymmdd'),'mm/dd/yyyy') as date_eff,
    to_char(to_date(cs.ymdend,'yyyymmdd'),'mm/dd/yyyy') as date_end,
    ssw.num_months,
    ssw.ssa_premium_collected,
    ssw.ssa_penalty_collected
    from amiown.contract_span cs
    left join (select distinct
    m.member_nbr,
    m.contract_nbr,
    trim(m.firstname) as fname,
    trim(m.lastname) as lname,
    m.hcfa_nbr
    from amiown.member m
    inner join amiown.member_span ms
    on ms.member_nbr = m.member_nbr
    and trunc(to_date(:mydate),'Month') <= to_date(ms.ymdend,'yyyymmdd') -- beginning of month is <= than end of span
    and add_months(trunc(to_date(:mydate),'Month'),1)-1 >= to_date(ms.ymdeff,'yyyymmdd') -- end of month is >= than beginning of span
    and ms.void = ' '
    and ms.class_x = 'CH' -- contract-holders only
    ) m
    on cs.contract_nbr = m.contract_nbr
    left join (select hno.member_id,
    substr(hno.member_id,1,9) as contract_nbr,
    pw.hic_number,
    pw.report_date,
    pw.start_date,
    pw.end_date,
    pw.num_months,
    pw.part_c_collected + pw.part_d_collected as ssa_premium_collected,
    pw.penalty_collected as ssa_penalty_collected
    from SC_BASE.hcfa_arch_premiumwithhold pw
    left join SC_BASE.hcfa_name_org hno
    on pw.name_id = hno.name_id
    where pw.report_date between pw.start_date
    and pw.end_date -- filter out adjustments
    and trunc(to_date(:mydate),'Month') <= pw.end_date -- beginning of month is <= than end of span
    and add_months(trunc(to_date(:mydate),'Month'),1)-1 >= pw.start_date -- end of month is >= than beginning of span
    order by substr(hno.member_id,1,9)
    ) ssw
    on trim(cs.contract_nbr) = trim(ssw.contract_nbr)
    where cs.division_nbr like '%SSW%'
    and cs.void <> 'V'
    and trunc(to_date(:mydate),'Month') <= to_date(cs.ymdend,'yyyymmdd') -- beginning of month is <= than end of span
    and add_months(trunc(to_date(:mydate),'Month'),1)-1 >= to_date(cs.ymdeff,'yyyymmdd') -- end of month is >= than beginning of span
    The :mydate parameter is defined in the .rdl with a Data type: of Date/Time
    I am trying to trouble shoot this by using a Linked Server to Oracle and even going against Oracle itself...providing the following syntax because I believe this is what's being sent over via SSRS...
    WHERE   TRUNC(TO_DATE(11/30/2014 00:00:00), 'Month')        <=      HCFA_ARCH_PREMIUMWITHHOLD.END_DATE
    However, every time I try this, I get an Oracle error...ORA-01843: not a valid month
    Can anyone help me out in the data transformation from SSRS to Oracle and the syntax that actually gets passed over so that I can try and troubleshoot this?
    Thanks for your review and am hopeful for a reply.

    Hi ITBobbyp,
    Please add the myDate field in the report to check if the myDate have the format like:'MM/DD/YYYY hh:mm:ss AM' or 'MM/DD/YYYY hh:mm:ss PM', If so, your issue can be caused by the format of the :mydate  parameter which is like 'MM/DD/YYYY hh:mm:ss AM'
    or 'MM/DD/YYYY hh:mm:ss PM' in the report ,so it have extra ' AM' or ' PM' compare with that in the TRUNC(TO_DATE('11/30/2014 00:00:00'), 'Month').
    You can get the format wanted 'MM/DD/YYYY hh:mm:ss' from 'MM/DD/YYYY hh:mm:ss AM' as below:
    You can create an new calculated field to get the new date by using expression as below and then create the parameter based on this calculated field:
    =Fields!DateTime.Value.ToString().Replace(" AM","").Replace(" PM","")
    You can also hide the :myDate parameter and then create an new parameter(NewMyDate) based on the :myDate
    parameter which will have the format like 'MM/DD/YYYY hh:mm:ss':
    Specify the available value and default value using below expression:
    =Parameters!myDate.Value.ToString().Replace(" AM","").Replace(" PM","")
    Then you can use the @NewMyDate to add in the query to filter the data.
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

Maybe you are looking for

  • Raw images in Photoshop Elements 12

    I connected the camera to my Mac Book Air to download my latest photos using a Nikon D3300. Went to open a raw photo in my adobe photoshop elements 12 and it claims it is unable to read/open the file. I just downloaded and opened other photos a week

  • How to...update fireworks list to dynamic list

    Hello everyone! I've created a dropdown list in fireworks with static information, but what I would like it to display is data from my mysql database. In other words make the dropdown dynamic. I've searched, but haven't been succesful in finding info

  • Question concerning document icons changing

    after I loaded 10.5.6 the majority of my document icons on my desktop do not show what type of document they are. If I create a folder on my desktop and place the document into the new folder the icons show the kind of file that it is i.e. adobe icon

  • Folder List resets on any file system action.

    Frustrating problem. Since updating to LR3, I have a condition where any file action (moving a folder, renaming a folder, removing a folder, opening LR, etc) changes the folder list from whichever state I was in, into a state wherein almost all the f

  • Getting videos from my iphone

    Can anyone tell me how to get the videos I record with my iphone onto my computer? I don't see them among the pictures I have downloaded from the phone. Thanks for any help!