Calculation based on user response

I have a report with 2 columns based on the data in the first column i need to perform either sum or average for the next column
C   July
c1 value1
c2 value2
c3 value3
c4 value4
c5 value5
c6 value6
If(Match(UserResponse("M1:");"c1") OR Match(UserResponse("M1:");"c2") OR Match(UserResponse("M1:");"c3") OR Match(UserResponse("M1:");"c4");Sum([Jul]);Average([Jul]) )
Value1,2,3,4 aggregation is sum but for c5,c6 also it is giving sum value but not average but i want the aggregation for value 5 and value 6 as avearge

For example take efashion unv
My requirement is if user selects california or newyork the aggregation on sales revenue should be average and sum on the other two states.
Code:
=If(UserResponse("State:")="California" Or UserResponse("State:")="New york" ) Then Average([Sales Revenue]) Else Sum([Sales Revenue])
this formula is not working , iam getting blank rows under sales revenue column
Is there something to do user response function because it returns values as california;new york;massachusetts;texas
could you please post the correct formula
State Sales Revenue
California
New York
Massachusetts
Texas
Edited by: pullabh on May 25, 2010 6:35 PM

Similar Messages

  • Month filter between two ranges based on user response inIDT

    Hi,
    I am working on SAP BO4.0.I have a requirement of creating a month filter on a date which will be between two ranges.The first range is the user response and the second range will be 6 months added to that user response.For eg:-If a user enters 1 as the response for month prompt then the date will be filtered between 1 and (1+6)=7.The database used is SAP HANA.
    Please let me know if further clarifications are required.
    Any help on this will be appreciated.
    Thanks in advance.

    Hi Riddhi ,
    afaik this is not doable in UDT/IDT .Only thing we can make is to run the report for last month by using magic dates concept.
    Check below logic if it helps.
    For a requirement to run a report for  fiscal year starting date to last month if nothing selected .
    @Select(Time\Yr-Mth Key)  between@Prompt('From Date','A','Time\Month / Year',mono,primary_key,,{'JUL 2013'}) and   
    (case when @Prompt('To Date','A','Time\Month / Year',mono,primary_key,,{'JAN 1999'})='JAN 1999' then to_char(add_months(sysdate,-1),'YYYYMM')  
    else  
    @Prompt('To Date','A','Time\Month / Year',mono,primary_key,,{'JAN 1999'}) end)
    This is on Oracle Database.
    When you run webi report
    From Date : JUL 2013 (fiscal year start date)
    To date : JAN 1999( without changing this you can refresh the report for last month , else it'll refresh for selected month)

  • Current week/current Month/YTD data based on user response

    Hi
    I have one attribute request_created_date
    Based on this i want to create one more attribute which will have lovs as week(Request_created_date for current week),monthly(Request_created_date for current week),
    YTD(Request_created_date for current year to date).
    Now i want to use this new attribute (Having LOV as week/Month/YTD) as a report prompt so that user itself can select whether he wants to see
    week/month/YTD data in report.
    To Add to this :
    Req is something like this if user select week , Req_created_dates should be filtered for all the dates of cureent week.
    Req is something like this if user select month , Req_created_dates should be filtered for all the dates of cureent month.
    Req is something like this if user select Year , Req_created_dates should be filtered for all the dates of cureent year.
    How can i achieve this?

    Add One variable
    Time_Data ="Weekly"
    Create Input control (Radio Button)
    Use Custom LOVs (Add Weekly , Monthly , Yearly ).
    Set Default (Weekly).
    Now Create Another Variable
    User_Want = ReportFilter([Time_Data])
    Now filter your Report for week , Month or Year (as per Selection) using If else Statement .
    For eg.
    For Week
    [Created_Date] Between RelativeDate(CurrenDate();-7) And CurrentDate()
    For Month
    (Year([Created_Date]) = Year(CurrentDate())  And Month([Created_Date]) = Month(CurrentDate()))
    For Year
    (Year([Created_Date]) = Year(CurrentDate())

  • How to make different forms available based on user responses

    I have created 4 fillable application forms in Adobe Acrobat 9 Standard. First time using this product.
    Boss wants a dynamic form, so that if a user answers Yes to a question in Form A, then Form B is automatically inserted into Form A for the user to complete. If they answer No, then they continue in Form A, until questions prompting them Yes/No for Form C and Yes/No for Form D.
    We believed that this might be possible if we upgraded to Acrobat Acrobat 9 Pro, with the LiveCycle Designer ES 8.2.1 bundled in.
    I have looked at Pro and can't figure it out, and I've looked at LiveCycle Designer ES 8.2.1 and am completely confused as it is so different.
    Saw a tutorial that said to go to Tools and use the Action Builder, but I don't have this option in my version. Not sure why?
    We want users to be able to use Reader to complete and save the form, and print it for mailing, emailing or faxing to us.
    Any guidance or suggestions, or advice on recommended books, tutorials, or training would be appreciated.
    We are in Ontario, Canada.
    Thanks

    Hello,
    We had a similar requirement.
    The best way we found was to implement the enhancement spot in the beginning of method LOCK_ORDERS of class CL_CRM_METHODS_BTIL. Here, you can prevent the user from editing a business transaction. Be aware this method is called for any BT, so you need to adjust your custom development accordingly.
    Hope this helps.
    Best regards,
    Sylvain AGUETTAZ

  • Tips based on user response

    After a learner takes a quiz, is it possible for Captivate to
    generate a tip sheet based on the learners answers?

    > That said, if you are a fairly experienced web
    developer, there are ways
    > to
    > get the scoring data out to the HTML page, where you can
    then use
    > Javascript to
    > evaluate the score and do whatever your web developer
    brain can think up.
    >
    >
    You could use external JavaScript to test the score, then
    navigate to the
    desired 'tip' slide. You need to learn about the built-in
    Captivate
    variables and have at least a working knowledge of
    JavaScript.
    Steve
    http://twitter.com/Stevehoward999
    Adobe Community Expert: eLearning, Mobile and Devices
    European eLearning Summit - EeLS
    Adobe-sponsored eLearning conference.
    http://www.elearningsummit.eu

  • Based on the user response need to calculate measures in universe

    Hello Folks,
    I have report where user prompts for the single day (Ex: OCT 1 2014).All calculations should be at universe layer.
    1.Based on the user response I need to create a report for previous months .
    2. PYTD and YTD measures based on user prompt from universe. [PYTD - JAN 1 2013-OCT 1 2013, YTD - Jan 1 2014- OCT 1 2014].
    Example Date Set :
    DIM 1                    SEP13...............................................................OCT 14      PYTD   YTD
    Florida  state        M1.Single value need to give previous 13 months data    M3        M4
                 federal    M2..Single value need to give previous 13 months data   M5       M6.
    Arizona  state        M1.Single value need to give previous 13 months data    M3        M4
                 federal    M2..Single value need to give previous 13 months data   M5       M6.
    M1...M6 are the measures need to come from universe based on the user prompt.
    M1,M2 Need to give previous 13 months based on user response.
    M3,M5 [PYTD - JAN 1 2013-OCT 1 2013]
    M4,M6 YTD - Jan 1 2014- OCT 1 2014].
    Thanks for your help in advance.

    Hello Folks,
    I have report where user prompts for the single day (Ex: OCT 1 2014).All calculations should be at universe layer.
    1.Based on the user response I need to create a report for previous months .
    2. PYTD and YTD measures based on user prompt from universe. [PYTD - JAN 1 2013-OCT 1 2013, YTD - Jan 1 2014- OCT 1 2014].
    Example Date Set :
    DIM 1                    SEP13...............................................................OCT 14      PYTD   YTD
    Florida  state        M1.Single value need to give previous 13 months data    M3        M4
                 federal    M2..Single value need to give previous 13 months data   M5       M6.
    Arizona  state        M1.Single value need to give previous 13 months data    M3        M4
                 federal    M2..Single value need to give previous 13 months data   M5       M6.
    M1...M6 are the measures need to come from universe based on the user prompt.
    M1,M2 Need to give previous 13 months based on user response.
    M3,M5 [PYTD - JAN 1 2013-OCT 1 2013]
    M4,M6 YTD - Jan 1 2014- OCT 1 2014].
    Thanks for your help in advance.

  • Capturing user response based on radio button

    I am trying to capture user response based on yes or no reply to a required radio button.  If they answer yes, they need to provide details.  The radio button values are N and Y, nothing listed under item, the captions are turned off. I used the LiveCyclePopUp.pdf sample by George Kaiser as a go-by and modified for my radio button/text field name and added the visible/invisible, but no luck.
    Here is what I'm trying, but it's not working, nothing happens when I click either yes or no, am using javascript. 
    Once this is working right, if possible, I would like to add to my submit button a double check to make sure if this radio button answer is Y and the text box is null, go back and provide the answer, but the most important part is to get this part working.  Any ideas what I'm missing?  Thank you!
    switch (this.rawValue)
        case "Y":
        Response25AY.presence = "visible";
        Response25AY = xfa.host.response("Please enter "YES" details (date, injury details, corrective action) below", "Q25A YES DETAILS", "Please enter "YES" details (date, injury details, corrective action) here . . . ");
        break;
        case "N":
        Response25AY.presence = "invisible";
        break;

    Hi,
    Firstly, the syntax is JavaScript, so when setting the Response25AY, you would need to include .rawValue:
    Use of quotation marks within the script will give a syntax error (around the YES).
    A small note: I would not duplicate the question as a default value. It does not really add value.
    So this should be closer:
    Response25AY.rawValue = xfa.host.response("Please enter YES details (date, injury details, corrective action) below", "Q25A YES DETAILS");
    Can you check the relative reference from the radio button group to the Response25AY object. It may be that the reference in the script is not full enough and is incomplete.
    Also I would place this script in the click event of the radio button exclusion group.
    Lastly, check the JavaScript Console (Control+J) when previewing the form, for errors.
    Hope that helps,
    Niall

  • How to determine Organizational Data based on User Login

    Dear all,
    How to determine organizational data based on user login in Activity transaction, currently org determination is happening after entering customer number in the transaction.
    We have used 'Responsibility' determination rule for this configuration. Now the requirement is to determine org data based on user login.
    In Org model we have assigned user to org data through a business partner. But still org data is not getting determined in the transaction.
    Please help me to trace out the problem.. your suggestions will be highly appreciated.
    Best regards
    Raghu ram

    You just have to use other organization determination rule. In your case this would be rule 10000194 (ORGMAN_12). This determination rule delivers the responsible organizational unit of the user
    User is defined as a business partner in the container attribute 'PARTNER'. If not, the system user (sy-uname) is used.
    So you have to do the following:
    - use this determination rule
    - in BP link username with employee
    - assign in PPOMA_CRM employee or user to organizational unit
    This should solve your problem.

  • Unable to Navigate Organization in "Maintenance Super User" Responsibility (Eam Self Service Pages)

    Dear friends,
    Iam learning Oracle EAM module, now i had a problem that i couldn't able to find EM1 Organziation in the LOV, though i have done Organziation access also, based on the Oracle support.
    Solution from Oracle Support
    ======================
    Unable to Navigate in 'Maintenance Super User' Responsibility (EAM Self Service pages) (Doc ID 1053400.1)
    If you have the Organizations LOV empty, then you need to go to (Navigation) -Inventory (responsibility) > Setup > Organizations > Organizations  Access. Here you need to define a new line for each organization you want to access from the EAM SS responsibility.
    Kindly respond on this issue.
    Thanks
    Shruthi

    Try to compare the menu that you have created with Functional Administartor menu structure. It may help to debug your problem.
    Thanks,
    Mitiksha

  • User response fuction help

    Hi Techis,
    I need to create user response function in webi report in a variable.The variable i use for furtur calculation.
    Gentis is a prompt name and user selects any one of the 2 values in a prompt.
    suppose user select "A" in the prompt it will return '0' and user selct "B" in the prompt user response will return 1 (any how any one value 0 or 1)  save in the variable.i am using r4 and BEX Query is source.
    How can i save 0 or 1 in variable.
    Kindly help me on this.
    Greatly appreciated.
    Thanks--
    Madhu
    Edited by: send2madhuk on Mar 3, 2012 8:31 AM

    If you already have WEBI prompt named "Gentis" then it's simple - create new WEBI variable with following formula
    =If UserResponse("Gentis")="B" Then 1 Else 0
    or
    =If UserResponse("Gentis")="B" Then 1 Else If UserResponse("Gentis")="A" Then 0 Else 99
    Depending on your requirements you'll have to choose between type of variable - Dimension, Detail or Measure. Since you said you will use variable for futher calculations most likely type of variable should be Detail or Measure.

  • User response function

    Hi
    Can any body explain about user response function with simple example.
    Thnaks in advance

    Assuming your universe contains a filter that prompts for user input using the @prompt function and you use the filter in your report OR you add yourself a filter which requires user input in the query panel of your webi report.
    When the report runs it will ask your user to provide a value by displaying a text that you provided:
    eg. Enter year:
    The function UserResponse('Enter year:') will return the value the user provided and you can use it in a WebI variable for further calculations
    eg. the following code in WebI
    ="User entered year " + UserResponse('Enter year:')
    will display
    User entered year 2010
    assuming your user typed in the value 2010 when prompted.
    Hope this helps.
    Regards,
    STratos

  • To Select Template based on the responsibility

    Hi All,
    i have created a rdf with multiple templates.
    Whether it is possible to select templates automatically based on the responsibility.
    For ex:
    When the user selects xxx responsibility then xxx template should be default template suppose if user select aaa responsibility the aaa template should be default template.
    Please help me in getting solution for this.
    Thanks
    Rajesh

    I am not giving the solution, one way is, you need to call your program (xxxx) from another program(yyyy, it is a new program). While calling program xxxx from program yyyy, you need to calculate the template name based on the responsibility and use that in fnd_request.add_layout.

  • Generate charts based on user input

    Hello!
    My goal is to create an application in which a user would enter information (specifically in the form of numbers and financials). The final output would create a page / document that shows summary of the data and also manipulates the data into bar and pie charts. (We are trying to create side by side comparison charts based on user input.)
    I have a subscription to the Creative Cloud, so I have access to a large % of Adobe products. Do you have any suggestions on what application I should use for this project? The final output could be PDF or Web based.
    Thank you!
    Bethany

    Hi Bethany,
    You may check out Adobe FormsCentral at https://www.acrobat.com/formscentral/en/home.html and see if that's what you need. You can create forms using Adobe FormsCentral to collect user input and user responses will be displayed in charts.
    Thanks,
    Wenlan

  • Interest calculation based on Net Due Date

    Hi guys: I want the interest calculation based on net due date and not document date or posting date.
    I tried to check the box "ALWAYS CALCULATE INT FROM NET DUE DATE in prepare item interest calculation step, but system gives me message
    "Do not select "Calc.intrst from net due date" for this int.calc.type
    Message no. F7128"
    Here are my questions:
    1- how can i make the system to calculate interest only after the item is due for payment - right now its calculating anyday after the document date
    2- Is this the correct place in configuration to do this?  (ALWAYS CALCULATE INT FROM NET DUE DATE )
    3- Also in T code FINT, how can i run interest posting for only one item rather than all that show up in test run? I tried selecting/highlighting only one but it posts all.
    thanks much
    brian

    HI,
    The system always calculates the interest from the document date of the invoice,
    as of my knowledge there is no setting for the interest calculation from the net due date, so
    what u need to do is when u are running the open item interest run u specify the period of only the date
    from the net due date to required date as of u.
    if u  want to calculate the interest to paticular invoice and  having two invoices
    then u can run  as per the document date and other thing is u can block the invoice for dunnig.
    Regards,
    Padma

  • How to Generate a Report Based on User's Parameters from Web Site

    Hi, all,
    I am trying to use Oracle Developer 6.0 Report Builder to generate report based on what user types in from the web site. Since I am a novice, I am wondering if anybody would help me with the following questions:
    1. How can I create a report based on user's parameters?
    Assuming that I have 2 text fields EMPNO and DEPT on the web site, after user types in some value, how can I pass these parameters into my query, can I do something like:
    select ENAME, JOB, EADDRESS from EMP
    where EMPNO =
    some_reference_of_parameters_from_user
    or is there any other way to achieve this functionality?
    2. How can I pass a PDF format report back to user after the report is generated?
    Any help is greately appreciated!!
    Best regards.
    Judy

    Hello,
    In the Report Builder, create two user parameters, and set the parameter name, datatype, width, and default values to what you want. Modify the query and put in a where clause (e.g., where deptno = :p_deptno). When you request the report with PARAMFORM=YES on the URL, it'll generate a default parameter form in HTML and allow the user to enter in the selected parameter values. Also set DESTYPE=CACHE&DESFORMAT=PDF on the URL to get the output back as PDF.
    If you upgrade to Reports 6i, you can customize the default HTML parameter form.
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • New to the E90 - grateful for some help ...

    Greetings All, Just got my E90 a few days ago. Just a few questions to start off with: 1. Can anybody recommend a decent free file manager application, i.e. one which actually allows me to browse the entire filesystem? The built-in Nokia file manager

  • Typekit sync problem in Photoshop (Suitcase fusion?)

    I am on a Mac OS X 10.9 and all my CC apps are up to date I installed a few desktop fonts from Typekit. They worked fine in Photoshop but after restarting my Mac the fonts were disabled in Photoshop. I then turned file and font sync of/on in CC setti

  • TNS-12560: TNS:protocol adapter error  TNS-00530: Protocol adapter error

    Unable to start listener service. Running Oracle Database 11gr2 on Windows 7. I just installed Oracle with the "install software only" option. Already set up the instance, the database, the dictionary views, etc. Created tsnames.ora, sqlnet.ora and l

  • Have Qt but no Qt headers?

    Former Ubuntu user, experienced Linux programmer, now using Arch 64bit on a laptop.  Man is this slick! I'm trying to compile the QUCS electronic circuit simulator from the source tarball (ignoring the Arch repository for now; i'm experimenting with

  • Synchronizing table to View in a Mapping.

    Hi All, I am trying to replace my table operators within all of my mappings to their corresponding views. If I do it from GUI it syncronizes/reconciles well, but I want to do it for all of the table operators in all of the mapping, that's why I tried