Designing Query.

Hi,
In want to design query in which i want to get count of number of orders which falls into buckets(<5 days ,5-10 days,10-15 days,15-20 days) based on age(age = present system date - required date(key figure)) .
For that i created formula for Age = present date - required date.
  from the age i am not getting how to count the orders which fall into respective bucket.
Thanks in Advance.
With regards
KPS Moorthy

Hi,
you have to create  4 formulas and then use count.
<5 days
5-10 days
10-15 days
15-20 days
You will get age . (using Age = present system date - required date(key figure)).
So in Column 1 create formula  ( ( Age ) < 5 ) * 1
In Column 2 create formula  ( ( Age > =5 ) AND ( Age <= 10 ) ) *1
In Column 3 create formula  ( ( Age > 10 ) AND ( Age < 15 ) ) *1
In Column 4 create formula  ( ( Age >= 15 ) AND ( Age < =20 ) ) *1
Then in Column 5 you create formula and add all columns from 1 to 4 here you get total count in single column.
Thanks
Reddy

Similar Messages

  • I am designing query based on dso

    Hi,
             i am designing query based on dso. in my query  production orders have multiple operations.when i execute my query report is showing only latest operations.we need to all operation.how can i fetch.
    ex :   production order                  operation
               100000141                            10,20,30,40,50
    when i exceute the query query is showing only  100000141 & 50.query is not showing 10,20,30,40 opeartions.please help me.
    Thanks & Regards,
    chandu.

    Hi Chandu,
    Check for the filters and variables for production order operation
    in query designer.
    Also check if that field is restriced to particular values, and check for any periodic restrictions.
    Hope this helps...........
    Rgs,
    I.R.K

  • Embedding a report designer query into a template - errors out

    In a template i want to include the report designer query, with the web item type - report, when i drag the report item into the template and try to edit it, it takes me to the report designer, there I'm able to open my report designer query - then when i go to - menu - transfer to web apllication designer - it takes me back to WAD but errors out saying it encountered a problem. Did anyone come across this issue? And how did you overcoem this? Any help or pointer would be appreciated and rewarded.
    Please find the error log below:
    3:45:25 PM.686 ########## END  ##########
    3:45:25 PM.686 ########## --> com.sap.bi.et.wad.BexWebApplicationDesigner.Launch.Main ##########
    3:45:25 PM.686: For Info: WAD Start. Revision: 7005.5.1100.277
    GetSystemInformation
    SUNI Const: 1.602272
    CommunicationFactory.GetSystemInformation (Setting Conn 1)): 1.602272
    CommunicationFactory.GetSystemInformation (Setting Conn 2)): 7.110082
    CommunicationFactory.GetSystemInformation (Setting init Propties)): 7.110082
    CommunicationFactory.GetSystemInformation (SUNI.FUNCTION_EXISTS)): 7.710934
    RSR_XLS_RFCtrc: 8.51207
    CommunicationFactory.GetSystemInformation (RSR_XLS_NET_INTERFACE)): 18.02556
    CommunicationFactory.GetSystemInformation (XML Stuff)): 20.0284
    CommunicationFactory.GetSystemInformation (Prop Stuff)): 20.0284
    CommunicationFactory.GetSystemInformation (Version)): 20.0284
    CommunicationFactory.ObtainSystemInformationandCheckVersion (GetSysInfo)): 20.128542
    BExTextPool.New1: 0.300426
    BExTextPool.New2: 0.400568
    BExTextPool.New3: 0.400568
    BExTextPool.New2: 0.400568
    CommunicationFactory.ObtainSystemInformationandCheckVersion (CheckAfterLogin)): 1.00142
    CommunicationFactory.LogOnUsingComConnection (ObtainSystemInfo)): 21.129962
    CommunicationFactory.LogOnUsingComConnection (MainConnectionChangedEvent)): 0
    CommunicationFactory.LogOn: 21.730814
    3:45:41 PM.458: Connected. System: BID
    <?xml version="1.0" encoding="utf-16"?>
    <I_T_SEARCH_ATTR xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
    <?xml version="1.0" encoding="utf-16"?>
    <I_T_SEARCH_ATTR xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
    RSR_XLS_RFCtrc: 0.700994
    BExThemes.LoadFromBackend: 2.50355
    BExThemes.LoadFromBackend: 0
    BExThemes.LoadFromBackend: 0
    Vert
    BExThemes.LoadFromBackend: 0
    <?xml version="1.0" encoding="utf-16"?>
    <I_T_SEARCH_ATTR xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
    BExThemes.LoadFromBackend: 0
    Vert
    BExThemes.LoadFromBackend: 0
    3:47:41 PM.198 ########## END com.sap.bi.et.wad.BexWebApplicationDesigner.Launch.Main ##########
    3:47:41 PM.198 ########## --> com.sap.bi.et.wad.RDHost.WADRDHostFactory.MaintainItem ##########
    -EXCEPTION-START- 3:47:41 PM.198: External exception in Report Designer (execution) ---
    Exception Message: Specified cast is not valid.
    Exception    at com.sap.bi.et.ReportDesigner.RDbReportDesigner.getCookies()
       at com.sap.bi.et.ReportDesigner.RDbReportDesigner.RunFromWAD()
       at com.sap.bi.et.wad.RDHost.WADRDHostFactory.MaintainItem(XmlElement iItemTagNode, XmlElement iLibItemTagNode, IWADHostServicesProvider iServicesProvider, Boolean iIsLibItem)
    Full Stack:
         at com.sap.bi.et.wad.Debug.WriteTraceToFile(Level, String, Exception)
         at com.sap.bi.et.wad.Trace.Exception(Exception, String)
         at com.sap.bi.et.wad.RDHost.WADRDHostFactory.MaintainItem(XmlElement, XmlElement, IWADHostServicesProvider, Boolean)
         at com.sap.bi.et.wad.rdcontrolhost.WADHostFactory.MaintainItem(XmlElement, XmlElement, IWADHostServicesProvider, Boolean)
         at com.sap.bi.et.wad.wiz.WADsF4GUIServices.CallCustomItemDialog(XmlElement, Form)
         at com.sap.bi.et.wad.man.WADfrmMainWindow.mnuCTXTEditTagCustom_Click(Object, EventArgs)
         at System.Windows.Forms.MenuItem.OnClick(EventArgs)
         at System.Windows.Forms.MenuItemData.Execute()
         at System.Windows.Forms.Command.Invoke()
         at System.Windows.Forms.Control.WmCommand(Message&)
         at System.Windows.Forms.Control.WndProc(Message&)
         at System.Windows.Forms.ScrollableControl.WndProc(Message&)
         at System.Windows.Forms.ContainerControl.WndProc(Message&)
         at System.Windows.Forms.Form.WndProc(Message&)
         at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
         at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
         at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
         at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
         at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32)
         at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32, ApplicationContext)
         at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32, ApplicationContext)
         at System.Windows.Forms.Application.Run(Form)
         at com.sap.bi.et.wad.BexWebApplicationDesigner.Launch.Main()
    -EXCEPTION-END----

    Hi Voodi,
    I have the same problem too. Worked  fine in SP 9 . Now we are in SP11 with FEP also in SP11 revision 277.Did you resolve the issue if so how?
    Thanks,
    Karthik

  • Big Troubles on designing Query about special customers' counting

    Hello buddies:
    I meet a problem on designing Query about special customers' counting. Let me describe the requirment first.  I want to create a query with BEX , and there is a key figure with very special logic.
    That is: to list the counts of the customers which has more than one sales records in a time period from sales data. 
    For example :
    when the user excute the query , he or she must input a time period ( 2007.01~2007.03 e.g)
    then the query output as follow:
    District          Cust-sount
    North-Zone       100
    South-Zone      120
    The Main trouble are :
    1. Threr are no document number in the detail of sales data document records. so I could not count the sales times with document number.
    2. The time period is not fixed value, it depends on the user's input, so I can not define the counting logic in the update rule or in the query with fixed time period.
    Anybody who met similar requirement pls show me your hand and give your solutions, thanks very much.
    Jason

    Hi,
        Your solution sounds a good way to count the distinct customers. but in my case, one salse line item must not be recognize as one sales record, instead,  one customer's all sales line items occurs in one day must be  recognize as one sales record ( or we say that one sales behavior).
    for example:
    customer     product    quantity   date
    cust001       prod001        10       2007.06.06
    cust001       prod002        20       2007.06.06
    the two line items above means one sales record for the customer "cust001".
    so I could not simply use the CKF : (( Counter ) *FV2 ) > 1 .
    Best Regards,
    Jason

  • Query Designer - Query:Specialist Group Status

    Hi Gurus,
    One of my BI user is getting error in this:
    In Query Designer - Query:Specialist Group Status
    "Registered JIT debugger is not avialable. An attempt to launch a JIT debugger with the following
    command resulted in an error code of 0x2(2). please check computer settings.
    cordbg.exe !a 0x289c"
    but when I tried with SUPER USER access i am not getting above error.
    Guys please suggest me asap
    Thanks
    sahad

    hello,
    Check the variabledefinitions of the query.
    Try RSRT and 'execute and debug'.
    It might be you get a lot more detailed information about the problem.
    see OSS note 961995.
    Regards,
    Dhanya

  • Report designer Query Transport issue!

    Hello ALL,
    Iu2019ve created a formatted report in Report designer the basis of which is a query developed in Query designer. Now the issue is Iu2019ve captured the query developed in Query designer by going to RSA1Transport connectionQuery Elements, but Iu2019m unable to capture the report designer query i.e when I try to search with this RD query name it says query does not exit.
    Can someone please help, how I can transport this Query developed by Query designer.
    Regards
    Madhavi

    Hi,
    let me know the solution?
    as i know , need to save and activate? and refresh in RSA1. you can find out your object.
    regards.
    Ram

  • No Dashboard Design Query on OLAP Universe BO 4.0

    Hi all,
    the goal would be to create a Dashboard Design Query on a OLAP MSS Analysis Services Universe (UNX).
    These are steps we follow to create the Universe (UNX) with IDT on BO 4.0.
    1.) Create the Project
    2.) Create the OLAP connection on OLAP Cube of MSS Analysis Services
    3.) Publish the OLAP connection
    4.) Create a Business Layer on OLAP Connection
    5.) Publish the Business Layer into the Repository
    Using that universe ( UNX ) with Infoview we have no problem to create a WeBi document.
    Using Dashboard Design Version 6.0.0.0 Build: 14,0,2,594 to create a query using that Universe ( OLAP UNX ), the system doesn't list that Universe. It seems that it doesn't exist!!!
    Someone has solved this issue?
    Thanks in advance.
    Luca Fatigati.

    Hi Nikhil,
    I have the same setup as mentioned by Luca Fatigati in previous post.
    Trying to create  Dashboard Design Query on a OLAP MSS Analysis Services Universe (UNX). But I am not able to .
    Also I tried creating Explore on top of my UNX whcih is created on MSS Analysis Services Cube , ( OLAP UNX) , I am not able to see my UNX in Explore also .
    Can you please let me know if this is not supported here as well . ?

  • Is there any transaction code for Report Designer,Query Designer and WAD

    HI Gurus,
    please tell me s there any transaction code for
    1 Report Designer
    2 Query Designer
    3 WAD
    Thanks in advance
    Prashant

    Hi Prashant,
    We don't have any Transaction Codes for these.
    Since these are installed along with the SAPLOGON BI components, it cannot be called using a standard transaction.
    You have to use only .
    Goto Start -> Programs -> Business Explorer -> Web Application Designer/Report Designer/Query Designer.
    Hope it helps.
    Reward with points if helpful.
    Regards
    Hemant Khemani
    Edited by: Hemant Khemani on May 16, 2008 5:39 PM

  • Design query

    Evening all
    I have a fairly basic design query and I woz wondering if anyone could help/come up with ideas/ laugh at it
    The application is a data transfer application for sending programs from a windoze based pc to expensive industrial machinery
    The application is designed to download files to the computers serial port, with a queue facility in order that the user can select mulitple files to download, the queue is needed because it takes forever to download a 400K file via a serial port running at 4800 baud, or even 9600 baud
    no problem so far, Ok
    Question 1. whats the best form of preventing a write operation to a file after its been added to the queue? I'm thinking I dont want someone to alter a file thats going to be downloaded , basically for safety reasons
    Additional read operations on a file are not a problem ie, sending the same data to multiple serial ports
    Question 2. the application in question is able to write to either COM1 or COM2 and can have a download running on each port concurrently. whats the best way of arranging the queue? have one queue object, or have multiple queue objects , each one tied to a serial port ?
    The other problem is the occurance of a system crash (usually caused by my boss turning the PC off because he's a pillock), would writing the queue objects to disk after every queue operation be a good idea, so that when the system reboots, it can see if there are any queues waiting to be processed.
    Boris
    Question 3 . will this thing ever make me more money?

    Evening all
    I have a fairly basic design query and I woz wondering
    if anyone could help/come up with ideas/ laugh at it
    woz.

  • San/storage design query Netapp + SAN

    I have a design query that I'm hoping someone can help with
    We need to provide the network connectivity to some netapp storage (ethernet based) and:
    30 X 10gb
    50 X 1gb servers.
    I have had a lot of issues trying to find cisco 10gb Ethernet switches to match the above requirements. The new sfp+ twinax cabling seems to be
    the only thing that is available and this is no good for serve connections.
    I have settled on the Nexus 3064 interlinked with its 48 ports of 10gb fibre capacity for the servers that require 10gb and Cisco 3750x series
    switches for the 1gb Servers. The 3750 provide the x-stack port channelling too and will provide the layer 3 connectivity also.
    Is this a good design and will this work?
    Any advice will be greatly appreciated.
    Thanks
    Sam

    Jonathan See wrote:I have a design query that I'm hoping someone can help withWe need to provide the network connectivity to some netapp storage (ethernet based) and:
    30 X 10gb
    50 X 1gb servers.
    I have had a lot of issues trying to find cisco 10gb Ethernet switches to match the above requirements. The new sfp+ twinax cabling seems to be
    the only thing that is available and this is no good for serve connections.
    I have settled on the Nexus 3064 interlinked with its 48 ports of 10gb fibre capacity for the servers that require 10gb and Cisco 3750x series
    switches for the 1gb Servers. The 3750 provide the x-stack port channelling too and will provide the layer 3 connectivity also.
    Is this a good design and will this work?
    Any advice will be greatly appreciated.
    Thanks
    Sam
    Sam.
    It'll work, but I question why you need the 3750X switches in this at all.
    The 3064 has 48 1/10 gig fixed ports giving a total of 96 1 or 10 gig ports (depending on tranciever). You only need 80. You can use the quad SFP ports to link the 3064's at layer 2, giving you up to a 160 gig backbone link between them, and then just connect your servers (be they 1 gig or 10 gig) across the two 3064's, or alternately use two of the quad ports (80 gig) to link the 3064's and use the other 2 to provide 8 extra 10 gig ports per 3064 unit which can be linked to other switches in your network.
    The 3064 will also do layer 3 on the 'base" license level (everything except BGP, full OSPF (OSPF limited to 256 routes at base level) and full EIGRP (stub only)), or full layer 3 routing at LAN Enterprise license level.
    Unless you perceive a need to expand your 1/10 gig port requirements beyond the 96 fixed ports available across two 3064's, then I can't see a need for the 3750's at all.
    Cheers.

  • MTD/YTD reporting design, query designer

    Hi BI folks,
    I have a requirement to build queries through BEx query designer that show MTD and YTD figures.  I also have multiple versions/value type built into the RKFs already.  I am wondering if there is a way to display YTD/MTD figures, without having to physically restrict them into the RKFs??, (i.e. I would like to have that time restriction sitting on top of the structure as a characteristic).
    I am trying to create more flexibility for the end-user, rather that having a huge amount of selections in the structure representing a particular version and time period.
    Is there some sort of hierarchy or variable definition that anyone can suggest where I can solve this need?
    Thanks.
    - BJ

    BJ,
    this depends on the environment that you are using, but it is fairly simple to do for MTD and YTD.
    as there are multiple variables available to be used for this, I consistently use two in the restriction (but you can play around and see what fits your needs the most).  For each structure, you should restrict on the following:
    MTD:
    Period Characteristic - Restrict to variable 0P_PER3
    Fiscal Year Characteristic - Restrict to variable 0P_FYEAR
    QTD:
    Period Characteristic - Restrict to Value range from period 00 to variable 0P_PER3
    Fiscal Year Characteristic - Restrict to variable 0P_FYEAR
    The reason you should have the Fiscal Year there is that you can use the text variable to set the column headers.
    Be careful that you use the right KF for this.  You need the periodic activity for the KF.  The reason Period 00 is included as that is where the balance from the prior year is carried over, so if you want to have the YTD values for the Balance Sheet, you would want to include that.  This scenario is the only option in BCS, and it doesn't have the Cumulative values.
    you can also use the cumulative values, but that depends on how the KF's are set up
    Pavel

  • Problem while designing query please help

    Hi all,
    I have to query to find No of open cases, No of closed cases,
    Average of open cases, Average age of closed cases,
    Maximum of closed cases for a particulat Current assigne(char).
    my desired output is as follows.
    CurAssigne   Noofopencases   Noofclosed cases  Avgage(opencases) Max(open)
    CurAssigne1       10                      20                     8                              9
    CurAssigne1       18                      22                     9                              10
    My cube is consists of.
    4 Dimensions & 4 key figures
    4Dimensions are listed below.
    Business Partner{currentassigne, previousassigne,acmanager}
    createdon{createdonmonth,createdonday,createdtime}
    closedon{closedmonth,closedday,closedtime}
    Status{Latest case status-(2 status are available for each case - open,close)}
    above the objects between {} are chars.
    4 keys are listed below.
    no of cases.
    age
    first response time
    research time.
    Please help me to design this query friends..
    It's very urgent friends please help me.

    Hi,
    Please share your system configuration on which you are trying to install Ps CS6.
    Regards,
    Ashutosh
    Ps Installer QE

  • BEX - Query Designer - Query Execution - IE "The page cannot be displayed'

    Hi ALL,
    Trying to execute a query from BEx Query Designer, result needs to be displayed on Internet Explorer.
    However, when IE pops up to show the result, it says 'The page cannot be displayed'.
    It seems the PORT Number is wrong.
    When I execute the RSPLAN the port number is 52300 (23 ASCS)  (and it works!!).
    For this web query the port in URL is 55300 (53 SCS).
    Could you help to configure the right port?
    Something needs to be done on Basis side configurations?
    Thank you,
    Nivia

    Hi,
    This especific problem was solved na SM30 programa RSPOR_T_PORTAL.
    But I still have problem:
    The PORTAL logon is displayed and after input the user and pass shows the 500 Internal Error.
    Caused by: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed
    Connect_PM  TYPE=B MSHOST=calsaps011.net.bradesco.com.br GROUP=PUBLIC R3NAME=BWH MSSERV=sapmsBWH PCS=1
    ERROR       partner 'calsaps011.net.bradesco.com.br:sapmsBWH' not reached
    I have looked the services and hosts and the files has the sapgw<> and sapms<> right configured.
    The important detail is that The PORTAL works if it doesn't come from BEx.
    COULD SOMEONE HELP ME?
    Tks,
    Nivia

  • Sharepoint 2010 designer query string parameter

    I need detail instructions on creating a customize new form to take parameters from Query string in SP designer 2010.  I follow the direction below but I am not able to edit the new form I created by deleting the list view and delete the controls by
    selecting the area in the design view.
    Open SP Designer
    go to the list and libraries and open the list
    Click on the new form and create a new insert view by creating the name of the form
    Open the new form I created
    I am not sure how to delete the list view and make that empty, delete the control by selecting the area in the design view
    I am not sure how to go to SharePoint control and add the custom list
    I am not sure how to add the parameter field to get the comments form the query string.
    Renee W

    Hi Renee,
    Using SharePoint designer 2010 to create new form for a list, it would be more convenient to use Design view. We can directly select and modify the control in the form UI.
    To delete anything in the form, you just need to place your cursor to make it selected, then use right-click menu or Backspace button on keyboard to remove it. As well as control in the form
    To add control, go to Design tab under Data View Tools > Actions > Insert Control.
    To add data view based on other lists, you could place your cursor to somewhere blank the area, then go to Insert tab > Data View.
    To use Parameter field, please go to Options tab under Data View Tools > Parameters.
    If you cannot see the Data View Tools, try click Save button and then place your cursor somewhere in the list web part.
    https://support.office.com/en-au/article/Create-a-custom-list-form-using-SharePoint-Designer-917d8fdb-ee00-4441-adb3-a94612d1d105
    http://sharepoint-videos.com/module-1/sp10create-custom-list-form-pages-using-sharepoint-designer/
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Report Designer - Query with variable

    Hi!
    When testing the report designer, we have found an issue - it’s not possible to embedding queries with variables.
    We have found note https://websmp107.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012006153200000232982006
    that suggest a solution to the issue.
    My question is simply, does anyone know if this is a temporary fix, or is this a constraint that is not planned to be fixed by SAP? The note is a bit ambiguous.
    BR
    bjørn

    Hello,
    Queries with variables are still in restrictions for Report Designer.
    You can use this work-arond creating Query View and fill up the variables. This allows you to define a Report in RD. Then, use Web Appication Designer to include your Report into Web Application and replace the Query View with your initial Query.
    For the integration do following:
    1. Create new Web Template in WAD
    2. Drag-and-drop Web Item "Report"
    3. Go to Property Window in WAD and search for "REPORT" (description Report Design) parameter in Web Items Parameters
    4. Use the button on the right side of the parameter to open Report Designer and choose your Report in it.
    5. You should see that new Data Provider was created in WAD -> Open it and set it to your initial Query.
    5. Save you Web Template and execute in the browser.
    Regards, Karol
    Development BI

Maybe you are looking for