Regarding Query Selection

Hi All,
Please suggest me the logic to generate the report as per below
I need to display the No Of Customers based upon the sales quantity they purchased for particular period (Jan to May) in the Year range (2005 to 2006)
Its Urgent
Thanks & Regards
Veeru.

Hi
Use the conditions to solve ur problem.
You can formulate conditions to make data analysis more efficient. In the results area of the query, the data is filtered according to the conditions so that only the part of the results area that you are interested in is displayed.
If you apply conditions to a query, you are not changing any numbers. Instead, you are just hiding the numbers that are not relevant for you. For this reason, conditions have no effect on the displayed values of the results rows. The results row of a query with an active condition corresponds to the results row of a query without this condition (see Ranked List Condition: Top 5 Products).
You can define multiple conditions for a query. Conditions are evaluated independently of each other. In doing so, the results quantity for the evaluation sequence is independent. The result is the intersection of the individual conditions. Multiple conditions are linked logically with AND. A characteristic value is only displayed when it fulfills all (active) conditions of the query (see Linking Two Conditions: Bottom 2 Sales and Invoiced Quantity > 100,000,000).

Similar Messages

  • Getting the MDX query select error when running a webi report on BI query

    Getting the following error when running a webi report on BI query :
    A database error occured. The database error text is: The MDX query SELECT  { [Measures].[D8JBFK099LLUVNLO7JY49FJKU] }  ON COLUMNS , NON EMPTY [ZCOMPCODE].[LEVEL01].MEMBERS ON ROWS FROM [ZTEST_CUB/REP_20100723200521]  failed to execute with the error Unknown error. (WIS 10901).
    I have gone through many threads related to this error. But not able find the steps to follow for resoultion.
    Please help in this regard.
    Thanks,
    Jeethender

    The Fix Pack is also for Client Tools--it is a separate download.  Please see the text below for ADAPT01255422
    ADAPT01255422
    Description:
    Web Intelligence generates an incorrect MDX statement when a characteristic and a prompt are used.
    The following database error happens: "The MDX query ... failed to execute with the error
    Unknown error (WIS 10901)."
    New Behavior:
    This problem is resolved.
    This information is also available in the Fixed Issues document for any Fix Pack greater than 2.2.

  • Check box in SAP Query selection screen

    I want to keep 2 check box in SAP Query selection screen.
    could you please tell me any one.
    regards,
    kumar

    Hi Vijay,
    If these check boxes are the fields in the table you are using then you can do it in SQ01, otherwise you may required to make the changes in the standard code generated for that query.
    You can find the name of the generated program of the query when you execute the query.
    Reward points if useful.
    Regards,
    Atish

  • SA 520 error every 10 seconds: sqlite3QueryResGet failed.Query:SELECT * FROM networkInterface WHERE interfaceName=\'bdg1\

    Hi all,
    On a SA 520 I got this error, every 10 seconds:
    sqlite3QueryResGet failed.Query:SELECT * FROM networkInterface WHERE interfaceName=\'bdg1\
    Internet access was very spoty and I couldn't reach the firewall administration on the LAN interface. Had to shutdown the appliance to get it working again.
    Firmware version is 2.1.7.1
    What could have happenend?
    With kind regards,
    Jeroen

    Hi, everything in the "Quick Reference" section should be commented out with ;
    You should change those settings further down in the php.ini file.
    Example:
    error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
    display_errors = Off
    Last edited by adrianx (2013-07-26 12:32:02)

  • Wildcards in Query selection filter

    Friends,
    We are using BW 3.0B and wanted to have Query selection to accept wildcard characters to material characteristic.  upon searching I could not find the selection option "Pattern" either when I create a variable or at Query user selection 'Selection Options'.  All I see is only following 5 options
    1) Single value
    2) Greater than or equal to
    3) Less than or equal to
    4) Greater than and
    5) Less than
    If anyone has any comments please post it..
    by the way this Inobject has NO "Conversion Routine" at InfoObject level..
    Regards
    Mavi

    Hi Mavi,
    I hope you did not use the word PATTERN in there..
    By pattern i mean the string u r trying to search..
    eg: We used TF* in the variable screen to select all values starting with TF..
    In case of doc numbers we used 3000* to get all document numbers in the 3000 series..
    Hope this makes it clear..Let me know..coz this works for sure..
    Ashish..

  • Urgent: regarding sub select statement

    I making a report in which i have to display the STOCK and i want to do the sum in a select statement of the value coming from the field AFRU-GMNGA so that i can do calculation of the value of 1st field to be subtracted from the last value of the same field .
    can anybody provide me example of it as i am currently using dis select statement:-
    SELECT AMATNR ALGORT BGMNGA BVORNR C~MEINS FROM AFPO AS A
      INNER JOIN AFRU AS B ON AAUFNR = BAUFNR
        INNER JOIN MARA AS C ON AMATNR = CMATNR
          INTO TABLE ITAB
          WHERE MTART IN MAT_TYPE AND A~MATNR IN P_MATNR .
    plzz help me out as it is really urgent to me.

    Hi,
    Go thr the below select query.
    select tvkwzwerks a350kschl a350vkorg konpkbetr
           from tvkwz inner join a350 on tvkwzvkorg = a350vkorg inner join konp
           on a350knumh = konpknumh into table itab where  tvkwz~werks = '1003'
           and a350~kschl = 'ZCPA'.
    Regards,
    vijay

  • BEx query selection screen takes long time to popup

    Hi,
    I have a query which is taking long time to popup the selection screen. I have tried in RSRT the generate report option, the generating report takes 45 to 60 mins. After the report is generated the query selection screen comes up in couple of seconds. The first time I run the query everything its fine but then for the second time the problem comes back again.
    The selection screen takes +/- 40 mins to comes up in RSRT and in the portal it times out.
    I have run the statistics of the query and according to the statistics report the query takes a  lot of time for the following component :
    OLAP: Query Gen.     2681,312682
    I have removed the query from the cache monitor and after that regenerate the report. But these steps didnu2019t solve my problem.
    I made two test queries, in one query I have made the CKFu2019s and RKFu2019s directly at the infoprovider, and dragged and dropped in the KF structure. In the other query I made the CKFu2019s and RKFu2019s in the query KF structure itself. The query where I have the CKFu2019s and RKFu2019s at the infoprovider that query times out, the other query where I put the CKFu2019s and RKFu2019s in the query KF structure doesn't has this performance problem.
    What I donu2019t know is why the query is failing when I use RKFu2019s and CKFu2019s from the infoprovider, the other query donu2019t have this problem.
    Please advise how to proceed.
    Thanks in advance,
    Arash

    Hi,
    Please check the following notes which should be useful.
    1387593 - Performance optimization for query change/generation
    1416737 - Performance optimization for query change/generation(2)
    1396485 - Performance optimization for query check/save
    Then please execute the SE38 report ANALYZE_RSZ_TABLES (see notes
    1472915, 1506560) and repair/correct the different tables to optmize
    the query definition tables.
    Regards,
    Amit

  • F4 search-help in infoset query selection-screen fields

    Hi all,
    I created an infoset, and it's corresponding query, and now I need to associate F4 search-help in two of the selection-screen fields. Since they don't have any reference field associated (they are SAP standard table fields), there are no possible values available to select.
    How can I do this?
    I have already tried to use the "AT SELECTION-SCREEN OUTPUT" in the infoset, but I'm not able to do that. When I try to use the select-options generated by the query (SP$00013 and SP$00014) I have a syntax error with "Field not known".
    Can you help me? I never done this before, so I really don't have a guess.
    Thanks in advance.
    Beste regards,
    Sónia Gonçalves

    Hi all,
    I have found thread  that helped me a lot in this issue.
    I just have one more doubt: I created the selection criterion and I can already see it in the query selection-screen, but it's appearing in the top of the selection-screen, in a different area called "General data selections".
    Isn't it possible to include it in the "Report-specific selctions"?
    Thanks in advance.
    Best regards,
    Sónia Gonçalves

  • Query Selection screen field validatoin

    I am testing a query using the RSRT2 transaction and have a query selection screen whose fields i want to create custom validations for. ( which should trigger when check or execute is pressed )
    How can this be achieved ?
    I tried looking for exits but did not find a relevant one.
    Thanks in advance.

    Hello,
    You need to write a routine in SMOD for selection screen validations.
    It will come in i_step = 3. please refer foll code as example:
    The code example is to check whether date is less than or equal to current date. If user enters future date it pop ups saying enter date less than or equal to current date.
    DATA:  LI_VAR like rrrangeexit,
           wa_t_var_range like LI_VAR,
           count type i value 0.
    IF i_s_rkb1d-infocube EQ 'CUBE1' or
       i_s_rkb1d-infocube EQ 'CUBE2'.
    Check whether only one of date variable is entered in variable screen.
    IF I_STEP = 3.
        Read table i_t_var_range into wa_t_var_range with key vnam = 'VARDATE'.
          if wa_t_var_range-low > sy-datum.
            CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
              EXPORTING
                I_CLASS  = 'RSBBS'
                I_TYPE   = 'E'
                I_NUMBER = '000'
                I_MSGV1  = 'Enter date less than or equal to current date'.
            raise again.
          endif.
    ENDIF.
    ENDIF.
    Regards,
    Shashank

  • Query Selection Screen restriction

    Hello All,
    In my query selection screen, i have date, month and week as selection parameters. Now my requirement is that user should select only one of them. If he selects more than one ie combination of two or all three, than query should not show any data.
    Can this be achieved? If yes how.
    Regds,
    Shashank

    Hi,
    You can try out, customer exit with I_STEP = 3.
    using which a exception will be raised if user enters value for more than one variable.
    Hope it helps......
    Regards,
    Umesh.

  • Query Selection Screen does not appear in Web Analyzer

    Hi Experts,
    Query Selection Screen appears when we open the query in Bex Analayzer in production system. But when we open the query in ABAP or JAVA Web view, the selection screen does not appears.
    As the volume of data in the cube is very high, and since the selection screen is not appearing, the query extracts 1.5Mrecords and results in dump.
    Kindly let me know the possibility for selection screen not appearing.
    Note: The selection screen appear in Development system in Bex Analyzer, ABAP View and Java View
    Regards
    Suresh Kumar

    Dear Suresh,
    You can check if the parameter &VARIABLE_SCREEN=X is added to standard template or not, If not add this,
    In order to add this parameter in the webtemplate you have to change 0ANALYSIS_PATTERN and save it as ZANALYSIS_PATTERN and enter this standard web template under TCODE RSCUSTV27.
    Also I would like to explain you the behavior of Web Analyzer,
    Parameter VARIABLE_SCREEN=X only influences the WEB application at startup. This will not come into affect
    when you use the 'New Analysis' button. The 'New Analysis' button resets the dataprovider so this would not
    affect the variable screen and would not redisplay the variable screen as you require.
    Regards,
    Arvind

  • Reason behind this query ,SELECT * FROM table WHERE 1 0

    HEllo,
    I would like to know the reason behind using this query ,
    SELECT * FROM <table> WHERE 1 < 0
    before executing the actual SQL query.
    Is there any special reason or the JDBC receiver side is configured like that.
    Is there any option to overcome this process like, can we remove this option or stop using this.
    Why the JDBC adapter basically sending this query on the DB?
    Thanks,
    Soorya,

    Hi,
    if you run this query, you wont be able to see any records of the table.
    SELECT * FROM <table> WHERE 1 < 0
    if you run this query you will see all records
    SELECT * FROM <table> WHERE 0 < 1
    same with SELECT * FROM <table> WHERE 1=1
    So you can check this out that whats happening in your code before executing actual query. just try to co-relate.
    regards
    Aashish Sinha
    PS : reward points if helpful

  • HIER_NODES in Query Selection

    Hello Guru's,
    I can choose in my Query selection one hier node. On the right side in the selection, i see the technical name,
    for example hier with cost center
    HIER01/TR32000 Istanbul
    on the left side, i see only Istanbul, no technical name. Where can I make changes for this.
    THANKS..
    SEMI
    USER EXIT  in Query ???
    Edited by: SemihS on Feb 4, 2010 8:45 AM

    Thanks Martin,
    But know i am facing a problem
    This is the i wrote:
      WHEN 'ZRANDATE'.
        IF i_step EQ 2.
          READ TABLE i_t_var_range INTO loc_var_range
               WITH KEY vnam = 'ZRANDAYS'.
          IF sy-subrc = 0.
            move loc_var_range to wl_tot_days.
            READ TABLE i_t_var_range INTO loc_var_range
                 WITH KEY vnam = 'ZRANDATE'.
            IF sy-subrc = 0.
              wl_date_ini = wl_date_fin - loc_var_range.
              l_s_range-high = wl_date_fin.
              l_s_range-sign = 'I'.
              l_s_range-opt = 'BT'.
              l_s_range-low = wl_date_ini.
              APPEND l_s_range TO e_t_range.
            ENDIF.
          ENDIF.
        ENDIF.
    Where zrandate is a variable of 0calday and the zrandays is user entry default value, the range of dates was not created correctly... when i try to debug (rsrt2) iam never be in i_step eq 2. What is wrong here? 
    Best Regards ans Thanks In Advence
    Message was edited by: Juan Carlos Diez de Medina
    Message was edited by: Juan Carlos Diez de Medina

  • DiscoverSQL2005DBEngineDiscovery.vbs : The Query 'select * from __NAMESPACE where Name ='ComputerManagement'' returned an invalid result set.

    hi
    I am keep receiving this message in central administration running server in event viewer
    DiscoverSQL2005DBEngineDiscovery.vbs : The Query 'select * from __NAMESPACE where Name ='ComputerManagement'' returned an invalid result set.  Please check to see if this is a valid WMI Query.. Object required
    adil

    Hi adil,
    It seems to be not related to SharePoint issue, I find a similar error post from Operations Manager forum you can take a look
    Also another below article of basic troubleshooting of discovery scripts for your reference.
    And for the further better assistance regarding this issue, you may want to post Operations Manager forum here.
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/21e9de85-5cbc-4217-8d9b-921e13dc88dc/sql-mp-issues-with-discovery-vbs-scripts?forum=operationsmanagermgmtpacks
    http://blogs.technet.com/b/kevinholman/archive/2010/03/09/basic-troubleshooting-of-discovery-scripts.aspx
    Thanks
    Daniel Yang
    TechNet Community Support

  • Automate Query selection

    Hi,
    I have a report which i need to schedule for flat file extraction daily. The report design is quite complex and hence changing the deign is no possibility..I have a variable which is User entry/required/single value..I run that report using rscrm_bapi..and i want this to be populated automatically since it is scheduled for daily..
    can anyone help me with this..?
    Thanks
    SM

    Guys,
    Its not that simple but i think its ok for the start...My requirement is :
    1. As I said clearly taht chaingn the query definition is not possible.
    2. I am using a query variant, but, the query selection pops up and tells me to select the variant. The issue is , somehow from backend side, I want to suppress the popping up of selection variable and use the variant directly rathre than asking for the variant.
    I hope am clear with my requirements.
    Regards,
    SM

Maybe you are looking for

  • Recovering data from one external hd to another

    So the tech told me I have a bad hard drive.  I am now booting up from an external HD(passport) and all seems to be going well. I have another external HD (G drive) connected running time machine. Can take my backed up data from the time machine exte

  • SAP APO and WM

    Hello All, Is it possible to put some warehouse related controls and limitations in SAP APO (SCM) without having EWM? For example, a certain warehouse can only process 300 orders and if anyone tries to place order beyond 300 then it automatically pus

  • Error while inserting XMLType document into table

    Dear sir, I have created a table in oracle 9i.The description is as follows: Name Null? Type ID NUMBER XML_DOCUMENT SYS.XMLTYPE(XMLSchema "http: //localhost:8080/home/SCOTT/ xsd/message.xsd" Element "me ssage") STORAGE Object-relat ional TYPE "MESSAG

  • How to do GAP analysis ?

    Hi Experts, How to do GAP analysis ? I have a BW problem statement about SD module. I have to do a GAP analysis. I am doing it for the first time. So any suggestion about the approach to start it ? Thanks

  • Unable to install j2sdk-1.4.2 in Redhat Enterprise Linux advanced server v3

    When trying to extract j2sdk-1_4_2 on RedHat Enterprise Linux advanced server, I got the message Do you agree to the above license terms? [yes or no] tail: bash: No such file or directory Unpacking... Checksumming... 1 The download file appears to be