Overall Average and Average of part of data-set displayed simultaneously

I am trying to write a report on Discoverer 10.1.2 that will display the average for a sub-set of a data population alongside the overall average of the whole population, BUT NOT display the average for the remaining sub-sets.
For example:
If there are 5 regions, A, B, C, D & E, the requirement is to display the average for region A against the overall average (averaged across all regions) and not to display the averages for teams B, C, D & E.
Can anyone suggest how this could be achieved in Discoverer Desktop/Plus/Admin?
Thanks
Duncan

Hi James,
It looks to me like your code is not giving you the results you desire because of an assignment syntax error.  You want to add all the Upr_Values together and then divide by the Upr_Count to get the overall average for the upper lobe.  Your code, though, just overwrites the previous Upr_Value with the current one and assigns the value +1 to Upr_Count each time:
Upr_Value =+ Chd(iLoop, "Strg_Angle")
Upr_Count =+ 1
Here's what you need instead to calculate the overall average:
Upr_Value = Upr_Value + Chd(iLoop, "Strg_Angle")
Upr_Count = Upr_Count + 1
If you want to get the average values for each X value below the blue line, then I recommend using the Calculate() command to create two new sets of X and Y channels, one set for the upper lobe and another set for the lower lobe.  The Calculate() command can also set all unwanted data to 0 or Null so that you can then calculate the per-X value average in each lobe with the linear approximation function.
If you want help with this, post or email me a sample data set,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
[email protected]

Similar Messages

  • Why does the system need two average costs - 'Average' and 'Average Rates'?

    Hello Gurus!
    The documentation does give definitions for 'Average' and 'Average Rates' cost types, but at a very basic level.
    http://docs.oracle.com/cd/A60725_05/html/comnls/us/cst/settask.htm
    I would like to know why the system needs two costs? How are they calculated and how are they used?
    Thanks!

    Hello,
    I can suggest you a workaround that will help you keep only the 64-bit version of Photoshop.
    Visit "Uninstall a Program" in Windows 7 Control Panel and uninstall Photoshop completely.
    Visit this page and download trial version of Photoshop.
    Run the installer manually and choose the 64-bit version only (uncheck 32-bit version).
    Launch the product and specify your Adobe ID credentials.
    The product will switch to non-trial (i.e. full) mode when it recognizes your Adobe ID.
    Regards,
    Amit Batra
    Engineering Manager,
    Amit Batra

  • Missing "Add Records" and "Refresh Records" options for data sets post domain re-import

    We recently had to re-install the Endeca server and as part of which had to export and re-import the data domains. Everything went fine except for the fact that newly re-imported data sets showcase just the "Manage Attributes" and the "Delete Data Set" options for an administrator login in. The previously available options to "Add Records" and "Refresh Records" beyond manage attributes/Delete Data Set are missing.
    Thoughts? Is there a security setting to enable these?

    So are you talking about the Add Records and Reload Records options for a data set in Studio?
    There are no separate security settings for these options. If a user is an application administrator (is able to edit the application), then they should have access to these options.
    The options are only available for data domains created using the Provisioning Service (created by uploading a file or from the JDBC or BI Server data source from the Data Source Library).
    I don't know if the process of exporting and re-importing the data domains (not sure how you did that) could somehow cause the data sets to no longer know that they were created by the Provisioning Service, in which case those options would not be enabled.

  • Is there a way to have the iTunes window displayed on the Mac display and the visualizer window on an alternate display simultaneously?

    I am using a mini-Display port to VGA adapter connecter from my MacBook Pro to the VGA cable out of the back of my TV and for some reason my iTunes window will not display the visualiser at the same time on the TV.  I can get them to play on diffrent Desktops in mIssion control but as soon as i make either of them full screen (which is what i want) it seems that one overrides the other and the screen of the non-fullscreen app goes blank I also cannot control the 4-finger horizontal swipe independantly on each screen.  If i swipe on the mac, the TV swipes as well and vice versa.
    Any advice or help i can get would be much appreciated and beofre anyone suggests mirroring the screen, that would not work as i would only get one app.

    Open System Preference > Time Machine
    Click Options....
    Ckick on external disk in list and hit the - button below the list to remove from the Exclusion list
    Allan

  • Spry XML data set and dynamic post variables

    Hi,
    I am trying to create an XML data set that has dynamic post
    variables.
    Everytime something is pressed on the page a variable changes
    and I then want to reload the XML data set using the new variable.
    I know I can just pull in an XML with all possible variables
    and filter client side but this would make it way too large.
    Does anyone know what I may need to do.
    I tried this:
    var myVar = 0;
    var dss = new Spry.Data.XMLDataSet (
    '../../cgi-bin/server_details.pl' , 'top' , { method: 'POST' ,
    postData: sid=ajaja21&ip=127.0.0.1&cid=' . myVar ,
    subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
    "true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
    "descending", useCache: false, loadInterval: 10000 } );
    onclick="myVar=1";
    But the script doesn't understand the post variables sent (it
    does when I remove the . myVar part and put in a static value). I
    think it isn't sending that dynamic variable with the post
    variables.
    Any ideas anyone?
    Thanks

    Well I had it working when I stripped back everything and
    just had the dss data set and a single onclick function, but now
    that I put it back together it hash foobared again.
    Here are the relevant bits of code that I've changed.
    The function to change server id:
    //function to run when changing the server id
    function changeServer ( sid ) {
    //set the url to use the current server id
    dss.setURL = ( '../../cgi-bin/server_details.pl' , { method:
    'POST' , postData:
    'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid='+sid
    //force a reload of the server data
    dss.loadData();
    The inital load of the data set
    var dss = new Spry.Data.XMLDataSet (
    '../../cgi-bin/server_details.pl' , 'yams' , { method: 'POST' ,
    postData:
    'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid=0' ,
    subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
    "true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
    "descending", useCache: false, loadInterval: 10000 } );
    And the part that changes the server id
    <td align="left" style="cursor:default; width:174px;"
    onclick="changeServer({dsv::servers/server/@id})">{dsv::servers/server/name}</td>
    I checked that the function is receiving the correct server
    id and I even tried hard coding the cid variable to 2 in the change
    function but it still wasn't changing on the server side.
    Any ideas?
    Thanks

  • Difference between SXPG_COMMAND_EXECUTE and Open data set mechanism

    Can you please help me to know the difference between moving a file using FM "SXPG_COMMAND_EXECUTE" and moving file using "open data set - transfer file- close data set" mechanism?

    Through 'SXPG_COMMAND_EXECUTE' u can execute a External command  (ie.. UNIX /Windows/OS/400) In ABAP programming..
    for Conversion Of Aplication server File/Move the file from one directory to Other...
    The Command must be present in SM69.
    Using this function module'SXPG_COMMAND_EXECUTE' , you can check the authorization of a user to execute a particular external command and run the command:
    With the arguments specified in ADDITIONAL_PARAMETERS
    On the target host system defined by OPERATINGSYSTEM and TARGETSYSTEM
    If an SAP profile parameter is inserted in the portion of the command stored in the database, then the value of this parameter is substituted into the command. If an SAP application server is active on the target system (TARGETSYSTEM), then the profile parameter values are read from the profile that is active on that system. No parameter substitution is made in ADDITIONAL_PARAMETERS.
    After substitution, the command is checked for the presence of "dangerous" characters such as the semicolon ( ; ) on UNIX systems.
    If an additional "security function module" is specified in the command definition, this function module is also called in the course of processingebenfalls. This function module can prevent execution of the command.
    If the authorization checks complete successfully, the command is run on the target host system.
    Through Open Data Set u can read and write the file in the same directory...
    Thnaks,
    SD
    Moderator message: copy/paste without credit, points removed, please do not repeat!
    http://www.google.de/search?hl=de&q=%22youcanchecktheauthorizationofauserto+execute%22&meta=&aq=f&aqi=&aql=&oq=&gs_rfai=
    http://www.google.de/search?hl=de&q=%22Aftersubstitution%2Cthecommandischeckedforthepresence%22&meta=&aq=f&aqi=&aql=&oq=&gs_rfai=
    Edited by: Thomas Zloch on Aug 17, 2010 12:47 PM

  • Illustrator Data Sets and Variables Help Please

    Hi, how's everyone doing?  I need a little help with Data Sets and Variables, or at least i believe that's what i need help with.  Ultimately i am trying to run an action on a batch of files. 
    I have an eps file with two images placed side by side.  They are the same image.  I am trying to replace both images and save the file accordingly.  Trying to make this happen using a bunch of files.  All the files can be in one folder and will be the same size. 
    I hope this make sense and what i need done is doable.
    Any help or advise would be greatly appreciated.
    Thanks in advance.

    Not sure a I read you correctly but if I understand you
    what you have to do is make the first two images as dynamic variables using the variable panel and save it as a data set
    then replace those two images and save those as a data set
    So now you have data set one and two.
    You can save that as an variable library (xml)and that can be loaded into other documents.
    The question is can it be actioned?
    It can be scripted and do you want the same two images to replace the same two image in each document.
    I think you really have to tell us more.

  • Secret data sets and variables in photoshop elements.

    In photoshop elements 4 thru 8, you can use data sets
    and variables, with the actions recorded for them in
    photoshop and then installed into photoshop elements.
    They work exactly like they do in photoshop and in fact
    there is already a menu item in photoshop elements,
    under in export menu, called export data sets as files.

    Not sure a I read you correctly but if I understand you
    what you have to do is make the first two images as dynamic variables using the variable panel and save it as a data set
    then replace those two images and save those as a data set
    So now you have data set one and two.
    You can save that as an variable library (xml)and that can be loaded into other documents.
    The question is can it be actioned?
    It can be scripted and do you want the same two images to replace the same two image in each document.
    I think you really have to tell us more.

  • Data sets and text encoding problem

    I have a problem when trying to import french text variables into my data sets (for automated generation of lower thirds). I can not get PS to display french special characters correct. all 'accented' As and Es etc. display as weird text strings, just like your browser running on the wrong text encoder.
    How do I get PS to interpret the data sets right? Any idea?
    thanx
    Gref
    ( PS CS6 (13.0.1), Mac Pro running on OS X 10.7.3)

    Thanx Bill.
    Unfortunately I cannot change the font as it is corporate. It has all the characters I need, though.
    Did I mention, that I have to generate french AND german subs? No.
    Well I tackled the german versions by processing the textfiles I get with textwrangler saving them as UTF-16. That worked with the german versions.
    Unfortunately I ran into 2 other problems now:
    First problem:
    The data set consists of 7 names and their respective functions. This processes perfectly in german (as I thought to this point) but in the french version it processes perfectly for the first 4 data sets while the fitfth has the right name but the function variable now displays the 5th function AND all the rest of the names and functions. I can not get these data sets displayed seperately. Bummer.
    But even more annoying…
    Second problem:
    When I now import my perfect german lower thirds into Avid I seem to loose my alpha information.
    Avid is supereasy to use with alpha: you have 3 choices: inverted (which is the usual way of importing) having black in the alpha transparent. normal - white transparent or ignore - no transparency.
    Importing 'inverted' alpha always worked (I use Avid for about 15 years now). but these processed PSDs don't. No alpha.
    So I tried to assign an alpha channel via Actions to these files. Now Avid seems to discard the layers completely leaving me with white text where it should be black. The PSDs have black character text layers but in Avid the characters are white. It seems like AVID just renders the white pixels of the alpha channel.
    Assigning the Alpha is no option anyway, as the whole process should make the generation of these lower third EASIER and faster for the person that has to make every lower third by hand by now.
    All of this can be boiled down to one word: ARGH!

  • Spry XML Data Set

    I have made a basic XML file that gets written to from the
    inputs of a form. All the information is written in the XML file
    correctly, but when the data is inserted, the new data doesnt
    display in the Spry table (evan with DW closed). I have a page for
    the form and a page to display All the data. The only way i can get
    the table to show the updated data is to close the browser and
    reopen. After i insert the data to the file i get the "File has
    been modified outside of Dreamweaver, Reload it" prompt. Is there a
    setting i should change? My XML file is in the root folder of my
    site on the local machine, i am using Vista Ultimate and
    ASP.

    Well I had it working when I stripped back everything and
    just had the dss data set and a single onclick function, but now
    that I put it back together it hash foobared again.
    Here are the relevant bits of code that I've changed.
    The function to change server id:
    //function to run when changing the server id
    function changeServer ( sid ) {
    //set the url to use the current server id
    dss.setURL = ( '../../cgi-bin/server_details.pl' , { method:
    'POST' , postData:
    'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid='+sid
    //force a reload of the server data
    dss.loadData();
    The inital load of the data set
    var dss = new Spry.Data.XMLDataSet (
    '../../cgi-bin/server_details.pl' , 'yams' , { method: 'POST' ,
    postData:
    'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid=0' ,
    subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
    "true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
    "descending", useCache: false, loadInterval: 10000 } );
    And the part that changes the server id
    <td align="left" style="cursor:default; width:174px;"
    onclick="changeServer({dsv::servers/server/@id})">{dsv::servers/server/name}</td>
    I checked that the function is receiving the correct server
    id and I even tried hard coding the cid variable to 2 in the change
    function but it still wasn't changing on the server side.
    Any ideas?
    Thanks

  • LIST_FROM_MEMORY - Excel File - Open data set

    Hello,
    A long time ago I asked people here how to convert a submit program to html and using open/transfer/close data set altoghter. I got a lot of help for that and I am greatful.
    However, I may need to try something and would like to ask how does this apply when you want to transfer <b>LIST_FROM_MEMORY -> Excel File -> Open/transfer/close data set</b>leading it to be saved to the application server.
    Thank you all and good day.

    Do we have to write the list into application server in XL format?
    Once we get the data from LIST_FROM_MEMORY, then write this data into application server using DATASETS
    Refer to these links
    How can I upload data from excel file from Application Server?
    Regds
    Manohar

  • How to activate a different sub-report for each row in the data set as main report page breaks on each row of data in the main dataset

    I am going to try asking this same question a different way as I have yet to find a working solution to my problem.  I have a main report and then 8 sub reports.  My main report has one data set and returns one row of data per account number.  One
    of the fields in the main data set is called AccountProf.  My main report displays one page per Account number and then calls a different sub report based on that account's AccountProf value.  The sub reports take in the account number as a parameter
    and get multiple rows of data to display that accounts usage formatted differntly for each AccountProf (hence the 8 different sub report.  
    So far I can figure out how to do everything but setting the visibility property of each sub-reports when I have multiple accounts.  If I use the following expression for the visibility property on each sub report, it makes all the applicable sub report
    for all the accounts requested visible at once:
    =IIF(Fields!AccountProf.Value= "USE_PLUS_DMD",False,True)
    *The value in bold USE_PLUS_DMD  is different for each sub report.
    Here is a look at what the main report look like:
    Here is the main reports data set:

    Hi JasonDWilson77,
    According to your description, there is a main report and 8 sub reports in the report, you want to set visibility of sub reports, if no value is passed to the parameter of sub report, the sub report will not be displayed. If that is the case, please refer
    to the following steps:
      1. Create a new parameter named NewAccountNumber, set its data type the same as @AccountNumber, select Allow multiple values, set Visibility to be hidden, then set all available values to default values.
      2. Right-click the first sub report and open Subreport Properties dialog box, click Parameters in left pane, set name to AccountNumber, then click (fx) button, type the expression like below:
    =Parameters! NewAccountNumber(0)
      3. Click Visibility in left pane, select Show or hide based on an expression, then click (fx) button and type the expression like below:
    =IIF(InStr(Join(Parameters! AccountNumber.Value), Parameters!NewAccountNumber.Value(0))>0 , false,true)
      4. Modify parameter of other sub reports like step2.
      5. Set visibility of other sub reports like step3.
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • How to generate TPC-E schema/data sets in Oracle 11g

    Hi,
    I want to use TPC-E schema in my Oracle 11g database (Standard) and also want to use DATA SETS from this benchmark for some kind of testing.
    I've download EGen v1.8.0 from this TPC website:
    http://www.tpc.org/tpce/default.asp
    but don't know who to implement this benchmark database into my computer's database. I'll appreciate if someone please suggest me how to do this...
    Thanks alot.
    Best Regards,
    Kamran

    kamran safdar malik wrote:
    I want to find Optimal size of a data block size as this is the one parameter which can increase the performance of a database or decrease it.If there is a single optimal size, that would surely be the default Oracle block size - as Oracle should know perhaps better than any of us, just what block size differences do as it is their code that uses it?
    Can I ask why you said that you would not have chosen this topic as a thesis?My leaning has always been to expert systems and A.I. Even designed and written my own expert system language years ago. One thing that is critical in such systems is how you structure data - and that has a nice database angle to it. One that I believe can still be exploited for research purposes.
    Don't you think that it'll benefit DBA's or database developer after I reach a successful conclusion?To be honest, in the real world of database systems, the least of my concerns are data block sizes. For example, we're busy putting together a storage array that should have a maximum I/O pipe size of 40Gb. In comparison, we currently use dual 2Gb fibre channels on most of our servers for our I/O.
    Technology moves fast. And perhaps there is an ideal block size for the standard storage array and Oracle instance today - but that could invalidated by new technology next year. Would I want to spend time and effort studying and analysing and researching a very specific technical subject, that perhaps is not considered as of that critical importance by DBAs and perhaps can be outdated with new technology and techniques?
    I honestly do not want to put you off studying db block sizes. Perhaps there's still some critical issues to uncover in that respect. But personally.. there are many other subject areas in database technology that peak my interest a lot more. But then you have your personal preferences and likes and dislikes - and data blocks could be your muse. :-)

  • Using URL Parameters  to Control Data Regions - HTML Data set.

    Hello folks,
    I creating a website for company and I am using HTML data set for siderbar navigation and content. It works beautifully and content updates as it have to without page refreshing. But I need to have an unique url for each sidebar element, so I i found  this nice sample http://labs.adobe.com/technologies/spry/samples/data_region/DataWithURLParams.html?row=20.  I did analogy with that sample on my website and indeed all sidebar elements now have unique url - but here comes new problem. Now  when I click on the each sidebar element - page starts to refresh . Here is my website http://www.varpa.eu . What have i done wrong ? How can I get  it to load new content without refreshing the page and to have each sidebar element unique url ? Please mention that I am talking only about the sidebar , not the topbar. Please help me .
    Sorry for my bad english , it aint my native language.
    Thank you,
    Richard.

    Thank you for your response Ben.
    That code which you provided is the top bar code. The top bar buttons should refresh the page, because I haven't done a spry magic with them yet.
    I was talking about the sidebar where Company , History etc.  elements are standing. Sidebar code is:
    <div id="sidebarbuttonwrapper" spry:region="about_us" >
    <div spry:repeatchildren="about_us" spry:choose="choose" >
    <div  id="sidebarbutton"
    onclick="location.href='about.html?row={ds_RowID}';"
    spry:when="{ds_CurrentRowID} == {ds_RowID}" spry:setrow="about_us"  spry:selected="sidebarbuttonselected" spry:select="sidebarbuttonselected" spry:hover="sidebarbuttonhover">{button_name}</div>
    <div  id="sidebarbutton"
    onclick="location.href='about.html?row={ds_RowID}';" spry:default="spry:default"  spry:setrow="about_us" spry:hover="sidebarbuttonhover" spry:select="sidebarbuttonselected">
    {button_name}
    </div>
    </div> 
    </div>
    As you can see here http://www.varpa.eu/test/about.html?row=0 when I click on the sidebar elements page doesn't refresh , but the each sidebar element doesn't have unique URL.
    When I included the URL params as in that sample above, now in this case http://www.varpa.eu/about.html?row=0 each element have unique URL, but this URL change makes page to refresh.
    Any suggestion how to achieve that each sidebar element would have unique URL, and clicking on it would not cause page to refresh ?
    Richard.

  • Loop through files locating specific data sets

    Hi there,
    I have been given the wonderful task of developing a setup which needs to do the following using JCAPS:
    - open and read through various flat files in a folder. These flat files have random data sets in them, where a line starting with 01, marks the start of a data set and 99, marks the end of a data set. 03, marks the line where the account number can be found.
    - retrieve the account number from the data sets and verify that against an external Oracle database table.
    - if account number is found, then read the data set from the flat file and write the data set to an output file.
    - if the account number is not found in the Oracle database table, just discard the dataset and continue with the next data set.
    If you have any ideas on how to set this up, that would be much appreciated. No need to spell things out, but if anyone has worked on a scenario like this or similar using JCAPS to do the trick please let me know.
    A scenario variant is that, instead of looking up the account number against the oracle database, we can use an if-statement like "if the currency is GBP, EUR, SEK, then take the data set from the input file and write the data set to the output file.
    I can create an input OTD to read in the data sets, and an output OTD which creates the output file. There is a blank line between data sets. The structure of a data set looks like this:
    01,CITIDIRECT,2978169,080922,0401,04010900,999,,2/
    02,2978169,400515,1,080919,0000,USD,2/
    03,57787314,USD,010,2191397371,,,015,2191397371,,,030,2191397371,,,040,2191397371,,,045,2191397371,,,060,2191397371,,,072,000,,,074,000,,,100,000,0,,400,000,0,,470,000,0,/
    49,13148384226,2/
    03,57787322,USD,010,1494730626,,,015,1494730626,,,030,1494730626,,,040,1494730626,,,045,1494730626,,,060,1494730626,,,072,000,,,074,000,,,100,000,0,,400,000,0,,470,000,0,/
    49,8968383756,2/
    03,57787349,USD,010,423382915,,,015,423382915,,,030,423382915,,,040,423382915,,,045,423382915,,,060,423382915,,,072,000,,,074,000,,,100,000,0,,400,000,0,,470,000,0,/
    49,2540297490,2/
    98,24657065472,3,8/
    99,24657065472,1,10/
    Thanks & Kind Regards,
    Richard

    Yes
    1. Have a variable inside SSIS to get folder path. Set path based on your rule using an expression
    like
    (@[User::ProductName] == "Product" ? "\\....\Src\Product" : (@[User::ProductName] == "Product_NCP" ? \\....\Src\Product_NCP:..))
    similary archive
    (@[User::ProductName] == "Product" ? "\\....\Src\Product\Archive" : (@[User::ProductName] == "Product_NCP" ? "\\....\Src\Product_NCP\Archive" :..))
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

Maybe you are looking for

  • Image with a Effect flicker

    How I can create a Image with Effect flicker Thanks

  • Multiple FacesMessage in BPEL Workflow does not display on first instance

    Hi, Am not sure where should I categorize this question (bpel or soa or adf') We are integrating bpel with our application for workflow management. SOA suit 11g generates the workflow adf pages automatically with payload which it stores. However what

  • [Solved] Python: Creating AUR package, binary can't find python module

    I'm building a PKGBUILD for PyLotRO for the AUR and I'm using a Debian package.  I tried just copying the content of the data.tar.gz to the filesystem assuming the directory structure is the same for the packages but apparently it is not.  At least I

  • Clamshell iBook Limbo

    I have a Tangeriene Clamshell iBook stuck in limbo. When it boots, it plays the tiger intro video, then when it should start the setup (Getting Started), it just displays the wallpaper and a cursor. Resetting the password doesn't work using any insta

  • Search for the end of each text frame?

    I'd like to insert some kind of marker at the end of each of my text frames in order to preserve where the page breaks occur, even after I've exported my file. The only function in InDesign that seems to recognize pages is the text variables that can