Using pre-query with 2 characteristics in rows?

Hi @all,
I need your help regarding the following problem:
There are multiple conditions in one query, I'd like to do in a certain sequence.
Because these multiple conditions in BEx where processed as "AND", for example
companies must be part of the Top x and an key-figure of these have to be more than y.
As a result, we have the top x companies reduced by these companies that doesn't match the key-figure condition. So there were less than x companies.
That's why we decided to use pre-queries. Because the key-figure is a ratio of the company on a higher level that is "restricted" by a condition, we need two characteristics in rows. That seems to cause some strange results in the main query wherein not all companies where submitted.
Does anyone know some workaround or any approach for this problem? Please let me know every idea.
Or do you know another way to set a certain sequence of conditions?
Many thanks for your help.
Tobias

I've found a hint that this can't be done by using replacement path variables. Instead we used several pre-queries.

Similar Messages

  • WAD input ready query with new blank rows

    Hi all,
    İ need to make an input ready query in wad with new blank rows under report.
    in mu query i can see posted values where i need blank rows as well.
    i have set number of new rows in analysis item.
    what else i should do.
    when i run my query, it gives warning that i have no columns that i can enter manually.
    Any help?
    thanks

    Hi,
    A few points that you should check:
    1) Whether all characteristics of the Aggregation level are restricted to one single value except for characteristics included in the rows;
    2) Whether all the characteristics included in the rows are displayed with the Key (with or without text);
    3) If you have a Unit characteristic in the row, it still has to be restricted to a single value in the filter.
    These are some of the typical reasons why I have encountered the same problem!
    Regards
    Sriram

  • Query with characteristics and NO Key figures

    Hi Everyone,
    I need to create a query with 3 char ... customer segment, customer type, climate zone. All are characteristics and there are no key figures.
    I went through the forum reading similar posts but couldn't figure out the best way.
    It can be done using Replacement path, Create formula variable with replacement path of your characteristic. Some posts also talked about writing some code.
    Like to know the best way of making this query.
    Can you please give me step by step procedure.
    Thanks,
    Kumar.

    I thought, if there are no key figures the query designer might give an error while saving, like "no key figures defined" or something like that. Thats why I came up with the question.
    I still have to document the detail requirement of user and he is not available. So just figuring out all the possibilities.

  • Using sql query with parameter

    OK, I can't find any docs on this. I can insert a parameter, but how do I insert that into the sql query?

    Your first post asked how to insert a paremeter into a SQL. My example shows a value read query with a SQL function, but any SQL will work with any Query in the same pattern.
    a) You call the query with session.executeQuery(query, vectorOfArguments);
    b) You use #argument in the SQL string and then query.addArgument("argument");
    c) You pass them in a Vector of the order in which you do the addArgument's.
    - Don

  • How to use power query with sitecatalyst

    Hello,
    I need to use power query to import a table from sitecatalyst. Doing some tests I found that If remove the session from the url that has the report parameters, the app will redirect me to the login page, after entering the company, username and password
    it will load the report page with the data according to my filters.
    When I add the report url on the From Web option, excel does not allow me to add credentials. If I add the login+redirect url it allows me to add user/password but does not load the tables that appear on a regular browser.
    Is it possible to consume sitecatalyst without using Report Builder? If not, how you access the security info after you added the url.
    Thanks.

    To the best of my ability to tell, the right way to use this product from within Power Query would be to use its API. Unfortunately, we don't currently support either of the methods needed to be able to authenticate with the service (OAuth 2.0 and a relatively-custom
    digest-based method). Adding a mechanism to allow use of arbitrary OAuth-protected resources is a fairly high priority for us, and I hope we'll be able to deliver something before mid-2015.
    Scraping the website is very hard to do well -- both from an authentication and from a data discovery perspective.

  • How to use WQL query with SCCM console.

    Hello,
    Sorry for my dumb question, but how can I run a wql query in SCCM console.
    Usually I use SQL query's from google to create new reports, I also find WQL query but where exactly should I place them:

    Go to General tab and select "Show Query Language".
    Paste in your statement and you're good to go.
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • Performance of an sql query with 16 million rows

    Hello,
    I have about 16 million records in a project table, lets call it the ENCOUNTER table.
    I have an ENCOUNTER_NUMBER to be searched for which is VARCHAR2(30) and has a unique constraint on it. The results are to be ordered by ENCOUNTER_NUMBER.
    The search string that the user enters is always considered to be a contains search and so a % is prefixed and suffixed to the search string.
    I have created a functional index on UPPER(ENCOUNTER_NUMBER)
    More the number of matches to the search query, the less the time taken. If there are 100 matches or more, the query returns within a second.
    If there is only one match it takes atleast 10 seconds.
    I am not sure at this stage why there is huge difference. Our client would be happy with 5 seconds.
    Can anyone help me with this please, if at all it is possible to get the search quicker
    Any help would be greatly appreciated.
    Many thanks
    Marilyn

    You are seeing differing response times to fetch the first n rows - not all the rows. So if your search is 'less selective' then you need to search fewer rows to find the first n rows meeting your criteria.
    For example, if you have a search that 1% of your rows will match, then you probably need to scan about 10,000 rows to find the first 100 matching rows. If you specify a more selective predicate, matching 0.1% of the rows, then you will need to scan 100k rows to find your first 100 matches.
    A generic 'contains' query, such as you describe, is difficult to implement with good performance. And it is often the result of someone not giving sufficient thought to the requirements: 'Well, it's too hard to figure out how people really need to use it, so I'll ask for this and I'll be covered regardless of what people really need.'
    Can you negotiate/narrow down the requirements, such as:
    - allow leading wildcards or trailing wildcards but not both
    - allow/require other search criteria to be specified (not more double-wildcarded criteria, though)
    - allow searching specific positions of the column (for example, if positions 4-6 have some specific meaning, then allow a search on that substring)

  • Problem with input ready query with structure in Rows

    Hi,
    First I have created an input ready query without a structure where I have GL accounts in rows and key figures in column. It works and I can see that the cells are ready for input when I launch it in web through query designer.
    Later, I am replacing the GL accounts in rows with a structure. Each line in the structure is combination of GL acctUoMChart of Acct (all restrcited to single values). Here comes the issue. When I run the query again (launching thru query designer) it dumps. Any idea?
    Also, please let me know whether the planning applications can be made using BEX analyser OR WAD ?
    Thanks a lot in advance.
    Regards,
    SSC
    Edited by: sapsem con on Feb 19, 2009 2:38 PM

    Hi,
    Can you check ST22 for the dump analysis.
    Also, planning applications can be built using BEx analyzer or WAD.
    Check this link for example and step-by-step procedure to do the same.
    http://help.sap.com/saphelp_nw70/helpdata/en/43/a18462c8291d9be10000000a1553f7/frameset.htm
    Regards,
    Deepti

  • Using a query with bind variable with columns defined as raw

    Hi,
    We are on Oracle 10.2.0.4 on Solaris 8. I have a table that has 2 columns defined as raw(18). I have a query from the front end that queries these two raw columns and it uses bind vairables. The query has a performance issue that I need to reproduce but my difficulty is that how to test the query in sqlplus using bind variables (the syntax for bind vairables fails for columns with raw datatype).
    SQL> DESC TEST
    Name                                      Null?    Type
    ID1                                                RAW(18)
    ID2                                                RAW(18)
    SQL> variable b1  RAW(18);
    Usage: VAR[IABLE] [ <variable> [ NUMBER | CHAR | CHAR (n [CHAR|BYTE]) |
                        VARCHAR2 (n [CHAR|BYTE]) | NCHAR | NCHAR (n) |
                        NVARCHAR2 (n) | CLOB | NCLOB | REFCURSOR |
                        BINARY_FLOAT | BINARY_DOUBLE ] ]
    The above is the error I get - i cant declare a variable as raw.
    SQL> variable b2  RAW(18);
    Usage: VAR[IABLE] [ <variable> [ NUMBER | CHAR | CHAR (n [CHAR|BYTE]) |
                        VARCHAR2 (n [CHAR|BYTE]) | NCHAR | NCHAR (n) |
                        NVARCHAR2 (n) | CLOB | NCLOB | REFCURSOR |
                        BINARY_FLOAT | BINARY_DOUBLE ] ]
    SQL> variable b3  RAW(18);
    Usage: VAR[IABLE] [ <variable> [ NUMBER | CHAR | CHAR (n [CHAR|BYTE]) |
                        VARCHAR2 (n [CHAR|BYTE]) | NCHAR | NCHAR (n) |
                        NVARCHAR2 (n) | CLOB | NCLOB | REFCURSOR |
                        BINARY_FLOAT | BINARY_DOUBLE ] ]
    --now the actual query below
    SQL> SELECT * FROM TEST WHERE ID1=:B1 AND ID2 BETWEEN :B2 AND :B3;
    SP2-0552: Bind variable "B3" not declared.
    (this fails due to the errors earlier)Also this is a third party app schema so that we don't have the option of modifying the data type of the columns.
    Thanks,
    Edited by: orausern on May 10, 2011 11:30 AM

    Try anonymous PL/SQL block:
    declare
    b1 RAW(18);
    b2 RAW(18);
    b3 RAW(18);
    begin
    b1:=..;
    b2:=..;
    b3:=..;
    SELECT col1, col2, ..
    INTO ...
    FROM TEST
    WHERE ID1=:B1
    AND ID2 BETWEEN :B2 AND :B3;
    end;
    /

  • Using Bex Query with cell definition with WEBI

    Hi,
    Currently I am using a Bex query as a datasource for a webi, normally this works ok but I am having trouble with one particular query.
    This query has cell definitions defined in the query. When i import the query into WEBI I get an MDX error.
    Any suggestions?
    Thanks
    Flash

    Hi,
    We do not see all elements of the BW query in the universe, just those not using cell definitions.
    We are currently on Business objects XI 3.1
    Using BW 3.5
    And the query runs fine using RSRT, it does show some asterix for some of the values but this can be removed by filtering on currency type in BW report
    Thank You,

  • Problem to calculate the coherence (using NetworkFunction-VI) with only 1 row of data for each, the stimulus and response input

    Hello,
    I am trying to calculate the coherence of a stimulus and response
    signal using the Network Functions (avg) VI's. The problem is that I
    always get a coherence of "1" at all frequencies. This problem is
    already known (see KnowledgeBase document: Why is the Network Functions (avg) VI's Coherence Function Output "1"?).
    My trouble is that the described solution (-> the stimulus and response input matrices need to have at least two rows to get non-unity coherence values) doesn't help me much, because I only have one array of stimulus data and one array of response values.
    Thus, how can I fullfil the 'coherence-criteria' to input at least two rows of data each when I just have one row of data each?
    Any hint or idea is very much appreciated. Thanks!
    Horst

    With this weird board layout, I'm not sure whether you were asking me, but, on the assumption that you were, here goes:
    I found no need to use the cross-power spectrum and power spectrum blocks
    1... I was looking for speed.
    2... I already had the component spectral data there, for other purposes. From that, it's nothing but addition and multiplication.
    3... The "easy" VIs, assume a time wave input, as I recall. Which means they would take the same spectrum of the same timewave several times, where I only do it once.
    I have attached PNGs of my code.
    The PROCESS CHANNEL vi accepts the time wave and:
    1... Removes DC value.
    2... Integrates (optional, used for certain sensors).
    3... Windows (Hanning, etc. - optional)
    4... Finds spectrum.
    5... Removes spectral mirrors.
    6... Scales into Eng. units.
    7... From there, you COULD use COMPLEX-TO-POLAR, but I don't care about the phase data, and I need the MAG^2 data anyway, so I rolled my own COMPLEX-TO-MAG code.
    The above is done on each channel. The PROCESS DATA vi calls the above with data for each channel. The 1st channel in the list is required to be the reference (stimulus) channel.
    After looping over each channel, we have the Sxx, Syy, and Sxy terms. This code contains some averaging and peak-picking stuff that's not relevant.
    From there, it's straightforward to ger XFER = Sxy/Sxx and COHERENCE = |Sxy|^2 / (Sxx * Syy)
    Note that it uses the MAGNITUDE SQUARED of Sxy. Again, if you use the "easy" stuff, it will do a square-root operation that you just have to reverse - it is obtained faster by the sum of the squares of the real and imag parts.
    Hope this helps.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks
    Attachments:
    ProcessChannel.png ‏25 KB

  • Using a query with condition as a source to fill an ODS

    Hi all,
    i need your help guys, i got the task to take the data from a BI Query and fill and ODS monthly, it means, i need taking like a picture of the data of the report at the end of each month, in this way i bring the data and fill a ods or cube monthly.
    I tried to do it with APD and doesnt work because this query has many conditions, now i tried with the RSCRM_BAPI and this when execute last too much, this execution has 2 days and doesnt finish yet, i can think this is not a factible way either, what else can i do? help

    hi,
    You need to write a code to get the key figure and characterstics value.
    First step is to defined the structure of all the field that you want to read.
    This table I_AXIS_DATA will contain the characterstics.
    This table I_CELL_DATA will contain the keyfigure.
    Please find the code.
                READ TABLE I_AXIS_DATA INTO WA_AXIS_DATA WITH KEY AXIS = '001' .
                IF SY-SUBRC = 0.
                  LOOP AT WA_AXIS_DATA-SET INTO WA_SET.
                        INDEX = INDEX + 1.
                        IF WA_SET-CHANM = 'infoobject name'.
                          WA_ROW_COL-fields = WA_SET-CHAVL_EXT .
                        ENDIF.
                        IF WA_SET-CHANM = 'infoobject name'.
                          WA_ROW_COL-field2 = WA_SET-CHAVL_EXT.
                        ENDIF.
                  ENDLOOP.
                ENDIF.
    ******* POPULATE COLUMNS AGAINST ROWS
                CLEAR WA_ROW_COL.
                V_COUNT = 1.
                INDEX = 1.
                LOOP AT IT_ROW_COL INTO WA_ROW_COL.
                  WHILE ( V_COUNT <= V_NUMOFKEYF ).
                        READ TABLE I_CELL_DATA INTO WA_CELL_DATA INDEX INDEX.
                        IF V_COUNT = 1.
                          WA_ROW_COL-keyfigure = WA_CELL_DATA-FORMATTED_VALUE.
                        ENDIF.
                        V_COUNT = V_COUNT + 1.
                        INDEX = INDEX + 1.
                        CLEAR WA_CELL_DATA.
                  ENDWHILE.
                  APPEND WA_ROW_COL TO IT_R_C_H.
                  V_COUNT = 1.
    Hope this is helpful.
    Thanks,
    Saveen Kumar

  • NULLReferenceException when using LINQ query with In clause

    Hi,
    I am not sure where my code is actually breaking. Kindly help as it's a production issue. It's not happening in SIT, but on production.
    NullReferenceException occurring when below method is called:
            internal bool IsFilingPartyWithActiveLAB(string docId)
                IBackEndMediator bckEndMd = null;
                List<DocCasePartyEntity> lstDCPWithLAB = null;
                try
                    if (!string.IsNullOrEmpty(docId))
                        bckEndMd = new BackEndMediatorImpl();
                        List<DocCasePartyEntity> lstDCP = bckEndMd.GetListDocCasePartyByDocId(docId);
                        lstDCPWithLAB = new List<DocCasePartyEntity>();
                        if (lstDCP != null && lstDCP.Count > 0)
                            lstDCPWithLAB = (from dcp in lstDCP
                                             where dcp.FilingInd
    == FilingPartyInd.Y &&
                                             dcp.HasLAC == YesNo.Y
                                             select dcp).ToList();
                        if (lstDCPWithLAB != null && lstDCPWithLAB.Count > 0)
                            foreach (DocCasePartyEntity dcp in lstDCPWithLAB)
                                DocCasePartyLACDetailEntity dcpLACDetailEntity = bckEndMd.GetDocCasePartyLACDetailByDCPId(dcp.DCPID);
                                if (dcpLACDetailEntity != null)
                                    if (dcpLACDetailEntity.LACRefStatus == LACRefStatus.A)
                                        return true;
                catch (Exception ex)
                    log.Error("Exception during IsFilingPartyWithActiveLAB()", ex);
                    throw;
                return false;
    Logged ERROR is:
    ERROR 2015-04-16 10:23:05,296 20 IELS.BackEnd.TaskList.Business.TaskListLABService -
    Exception during IsFilingPartyWithActiveLAB()
    System.NullReferenceException: Object reference not set to an instance of an object.
       at IELS.BackEnd.TaskList.Business.TaskListLABService.IsFilingPartyWithActiveLAB(String docId)
    DEBUG 2015-04-16 10:23:05,296 56 CrimsonLogic.Common.DMS.Utilities.SharePointHelper - :End GetSPFolder(http://URL, IELSFormXMLTemplates)
    ERROR 2015-04-16 10:23:05,296 20 IELS.BackEnd.TaskList.Presentation.TaskItemApprovalPage - TaskItemApproval: method-TaskItemApproval.BindWaiverFeeDetails, msg-System.NullReferenceException: Object reference not set to an instance of an object.
       at IELS.BackEnd.TaskList.Business.TaskListLABService.IsFilingPartyWithActiveLAB(String docId)
       at IELS.BackEnd.TaskList.Presentation.TaskItemApprovalPage.BindWaiverFeeDetails(List`1 feeListDTO)
    ERROR 2015-04-16 10:23:05,296 20 IELS.BackEnd.TaskList.Presentation.TaskItemApprovalPage - TaskListApprovalPageException occured at Page_Load
    System.NullReferenceException: Object reference not set to an instance of an object.
       at IELS.BackEnd.TaskList.Business.TaskListLABService.IsFilingPartyWithActiveLAB(String docId)
       at IELS.BackEnd.TaskList.Presentation.TaskItemApprovalPage.BindWaiverFeeDetails(List`1 feeListDTO)
       at IELS.BackEnd.TaskList.Presentation.TaskItemApprovalPage.Page_Load(Object sender, EventArgs e)
    ERROR 2015-04-16 10:23:05,296 20 CrimsonLogic.Legal.BootStrapper.BackEnd.ExceptionHandlerModule - Unhandled error occurred -
    System.NullReferenceException: Object reference not set to an instance of an object.
       at IELS.BackEnd.TaskList.Business.TaskListLABService.IsFilingPartyWithActiveLAB(String docId)
       at IELS.BackEnd.TaskList.Presentation.TaskItemApprovalPage.BindWaiverFeeDetails(List`1 feeListDTO)
       at IELS.BackEnd.TaskList.Presentation.TaskItemApprovalPage.Page_Load(Object sender, EventArgs e)
       at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
       at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    ERROR 2015-04-16 10:23:05,296 20 CrimsonLogic.Legal.BootStrapper.BackEnd.BootStrapper - Unknown application error occurred.
    Thanks, SS

    I don't trust compilers.  Had issues over 30 years ago and never use a combined 'if' where one of the items is null.
    if (lstDCP != null)
    if(lstDCP.Count > 0)
    lstDCPWithLAB = (from dcp in lstDCP
    where dcp.FilingInd == FilingPartyInd.Y &&
    dcp.HasLAC == YesNo.Y
    select dcp).ToList();
    jdweng
    That will not happen becuase he is checking for null first then count:
    This is 
    List<string> lst = null;
    if ( lst != null && lst.Count > 0 )
    different than this: this will cause null ref error
    List<string> lst = null;
    if ( lst.Count > 0 && lst != null )
    Fouad Roumieh

  • Problem accessing Infosets using Query with SQL

    Hi,
    I have Lumira desktop version 1.18.0.
    Using the Query with SQL connection, I successfully connected to SAP R/3 6. I was able to view the User Groups under CATALOG_VIEW, but it seems I cannot go beyong this point and select an Infoset. When I click on an Infoset I expect the Query pane to be populated with the SQL statement but nothing happens.
    I attached a screenshot for clarification
    Thanks
    Dany

    Hi Dany,
    A suggestion for you would be to use another client tool & check if the behavior is the same. I suggest that you use Information Design Tool (from BOE 4.1), create a connection to your ERP, then a data foundation on top of that connection and check if the behavior is the same. This way we can isolate if the problem is caused by the client tool or by the backend.
    My 2 cents
    Antoine

  • Cell Editor in query desinging with hierarchy in row

    Hi,
    Is it possible to use cell editior with hierarchy in row? I am able to use it with structure in column.
    Pl advise
    Best Regards,
    UR

    Hi,
    you need to have a structure in the rows and in columns.

Maybe you are looking for

  • Itunes won't upgrade from 10.4.1 to 10.5.3

    Got a free 6th gen ipod nano at work yesterday, come home to put music on it, needs itunes. I download and attempt to install the latest version of itunes for my system (vista 64bit), gets to the end and says a program wont load and cant install, so

  • Red exclamation point when booting

    My Apple Watch, 38mm sport, displays a red exclamation point. It seem frozen after I tried to re-associate it with my iPhone. I've been struggling the whole day to reboot it pressing both digital crown and side button, following instructions on www.a

  • ECR/ECO Authorization on system statuses - Coding help requested

    HI PLM Gurus, Unfortunately ( or that ,,,Iam not aware of)There is no SAP standard Authorization object to control a user setting a particular system status in ECR/ECO. This means by SAP's standard functionality any user who is authorized  with autho

  • What adapter must i use to make a projection of an m4v-file (sound and images)

    I have to make a presentation from an m4v-file. What adapters shall i use for sound?

  • ENABLE NOVALIDATE CONSTRAINT SYNTAX

    Hi, I have a table it's called loadsurvey which having some duplicate records. I would like to implement unique constraint on my table using following command which should not allow any new duplicate record into table and do not wants to validate exi