Merging data sets in a single graph in Excel

I want to make a graph in excel. I have two data sets, one horizontal and one vertical: e.g.
Data set 1 (few data point)
Date: 1-1-2010; 1-1-2011; 1-1-2012
Value     1000         5000         6000
Data set 2 (many data points)
Date               Value
1-1-2010          10
2-1-2010          9
3-1-2010          8
1-1-2011          11
1-1-2012          12
I want the data sets in ONE graph with the two different data sets in the graph. Where the x values are correct of course.
I dont need to merge the data sets or something like that
I really need good help for this

http://answers.microsoft.com/en-us/mac/forum/macexcel?tab=Threads

Similar Messages

  • Three data sets in a single Flex chart?

    Hello everyone;
    I've successfully integrated two data sets into a single Flex
    chart; now I'm wondering how to bring in another one. Here's an
    example of what I'd want to do. Say I wanted to chart average
    lifespan and average household income by US State. So I'm imagining
    each state could be represented by a pair of bar charts - one
    representing lifespan and using the left y axis and one
    representing income and using the right y axis. The third component
    would be the state, which the user should be able to display or
    hide. I'm imagining states being represented by color and a label
    on the x axis, and user controls to display more or fewer years.
    Any change I could actually pull this off?
    Thanks for any help.

    I'm not entirely certain where the conflict from adding
    States would appear, but I'm a little unclear on your data model.
    Have you considered putting all the information into a single data
    set? I would suggest filling an Array Collection with a class like
    this:
    public class infoHolder
    public var lifespan:int;
    public var salary:int;
    public var stateName:string;
    Then you can simply fill your chart like this:

  • How to configure optimal data connections to allow excel to retrieve multiple data sets form a single data source

    Hi all,
    I would like to have a data connection file used by excel to extract data form a SQL Server DB (so that change in location of the DB needs only a change to the  single data connection file). The excel file will retrieve data from only a single database,
    but there are multiple queries (30+) stored on SQL server that are used - each SQL server views' data is returned to a pivot table in an excel worksheet, which has an associated chart with various slicers on the main dashboard worksheet.
    Do I need a seperate data conenction file for each SQL server query being retrieved, or can a single connection file be created as all data comes from a single database?
    (all my attempts and research on the net have led me to believe that a seperate file is needed for each view, but this seems unnecessary)

    Hi, im learning my way with this, so apologies if I am providing too much or too little info.
    There are 8 source files which are very loosely related in that they capture infromation regarding what has happened within a metro railway over a day. However there are only a few relationships between the contents of tehse files.
    These tables are imported into SQL Server using SSIS where I have developed a number of views that query these 8 source tables to generate a number of metrics to provide insight into the service provided to the passengers. Some examples of metrics are: Number
    of passengers in transit at any given time, time taken to travel between adjacent stations, how much power was used during the day, what distance did the trains travel during the day, etc. Some views provide only a handful of rows, some provide 1M plus. There
    are now approx 40 seperate views created.
    I have then used a spreadsheet with a worksheet associated with each SQL server view. Each worksheet is set up as a pivot table, which allows the related chart on the main dashboard worksheet to use standard excel capability to slice and present the data
    in different ways.
    At the moment if the server on which teh database is stored moves, I have had to recreate the spreadsheet from scratch as I dont know how to change the connection information in any other way. Ideally I would like to have connection info in a single place
    to reduce ongoing maintenance, particularly as I would like to place the spreadsheet on a SharePoint server to distribute it to other users.
    Thanks

  • Displaying multiple data sets on a single chart.

    I am collecting data from 5 identical stations. There is not enough room to display 5 charts on my screen so I have set up a station selection drop down so the user can determine which set of data is displayed.
    My problem is that I don't know the best way to store the data in the background. I need to store something like the last 500 data points for each station.

    Hi;
    LabVIEW automatically allocate memory for your data in the program, which mean that while the program is running you can think that your data can temporarely be stored in the wires of your code
    To see what I mean, check the attached vi. It allows you to select which waveform to display in the chart, which look like it "stays" in the border of the while loop. This is just a "quick & dirty" solution. Because are only 500 points per station, it should not be too much problem.
    Another q&d way to do something similar is by using local variables.
    To store the data indefinively, consider saving it in a spreadsheet-style file.
    Regards;
    Enrique
    www.vartortech.com
    Attachments:
    Select_source.vi ‏48 KB

  • How to print very long data series (wrap multiple XY graphs)

    I'm working a data logger project where each file usually contains 5 - 10 minutes of data but sometimes may go up to 3 hours +. The customer needs the ability to print out all of the acquired data in XY charts.
    If the amount of data recorded exceeds 15 minutes, printing all of the data on a single chart is not an option (granularity) so they want to print as many 15 minute chunks as necessary to cover the entire range. Ideally, they want to print out two 15 minute graphs stacked on top of each other on a landscape page. I can split the data into chunks (that's the easy part) but I need a way to create an arbitrary number of XY graphs and format/size them for mult-page print out (2 per page).
    I'm looking for some ideas on how to solve this problem - any ideas are welcome as long as they involve LabVIEW and maybe Excel because it needs to be something i can integrate into the application. I can't use offline post-processing like Diadem in this situation.
    Philip
    CLD

    Philip,
    I would probably create one VI with two graphs formatted for printing. Then loop through the data, write segments to the graphs, print, repeat until all data is printed.  This method allows one very simple VI to present the data for printing and allows the user control over what is printed via the calling VI. For example if they decided that 10-minute graphs were better for certain data sets than 15-minute graphs, all the calling VI needs to do is change the amount of data written to the graphs.
    Write the data to a file to protect the data in the event of power failures or other unplanned events. Read it back to print if there may be too much data to keep in memory.
    Lynn

  • 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

  • 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

  • Appending or Replacing data sets in DIAdem

    I was wondering if there was an easy way to take new data points and append them to old data points already loaded into DIAdem.  Similarly I would be interested in just replacing the old data with the new
    I have a data set I have uploaded from an excel file into DIAdem.  Within DIAdem I have manipulated data and made several graphs for presentations.  Since that first upload of data I now have acquired new data.  That new data is in the same format as the old data, it's simply that there are more data points now.  So it would be nice to know how to either append or replace the old data while keeping all the formatting.  
    Right now the easiest way I've found is to copy and paste data into a new Excel file and upload it.  DIAdem scripts have proven buggy and inefficient.  I can't believe Excel would handle appending better than DIAdem.  There must be an easy way to do this that I am missing.  Any help would be appreciated.  

    Hi Stysley,
    Unless you're talking about a huge amount of data, I'd say the easiest and cleanest way to do this would be to delete all your channels in DIAdem and reload them from the (now larger) data file.  Then all you have to do in REPORT is hit the "Refresh" icon.
    It sounds like you are loading your data files into Excel-- does that mean that you have ASCII data files to start with?  The best approach in that case would be to create a DataPlugin for the ASCII data file format and avoid the intermediate Excel step.  Then re-loading the data would be as easy as hitting the "Delete Internal Data" icon in the NAVIGATOR and then dragging the ASCII data file from the NAVIGATOR tree view into the Data Portal at the right of DIAdem.
    If you'll post or email me ([email protected]) several of your ASCII files, I should be able to send you back a DataPlugin you can use.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Merging data from SAP BEx queries with SQL - Keys are details not Dimension

    I have a challenge when trying to merge data from a BEx query and a relational source in SQL Server.
    I have a characteristic for Material, with an associated Material key that is a attribute of Material in the BEx query.  On the SQL side I have a Material ID which is they unique identifier.
    So when you Merge Dimensions in a WebI report, it is exactly that merging dimensions,  so you link Material from BEx and Material ID from SQL.   However, on the Bex side Material displays a long text field which will never join to the data from SQL which is an ID.  The like for like objects are Material Key in BEx and Material ID in SQL, however, as Material Key from BEx is an attribute to manifests itself in WebI via a universe as a Detail object, which makes it unavailable for merging.
    I have tried to set the Material characteristic to display as KEY in the BEx query design, but alas it still comes through as a long text, hence still not able to merge data sets.
    Any workarounds ??
    Andrew

    Hi Andrew,
    In universe designer, edit the material key detail object. Copy the text that refers to the characteristic attribute in your BEx query. Create a new dimension (say, 'Material Key') and paste this text as the definition.
    Essentially you're turning a detail object into a dimension, which (in my limited experience) works just fine.
    Let me know how you go.
    DG

  • SQL Update a Single Row Multiple Times Using 2 Data Sets

    I'm working in tsql and have an issue where I need to do multiple updates to a single row based on multiple conditions. 
    By Rank_
    If the column is NULL I need it to update no matter what the Rank is.
    If the Ranks are the same I need it to update in order of T2_ID.
    And I need it to use the last updated output.
    I've tried using the update statement below but it only does the first update and the rest are ignored. Here is an example of the data sets i'm working w/ and the Desired results. Thanks in advance!
    update a
    set Middle = case when a.Rank_> b.Rank_ OR a.Middle IS NULL then ISNULL(b.Middle,a.Middle) end,
    LName = case when a.Rank_> b.Rank_ OR a.Lname IS NULL then ISNULL(b.LName,a.LName) end,
    Rank_ = case when a.Rank_> b.Rank_ then b.Rank_ end
    from #temp1 a
    inner join #temp2 b on a.fname = b.fname
    where b.T2_ID in (select top 100% T2_ID from #temp2 order by T2_ID asc)

    The Merge clause actually errors because it attempt to update the same record.  I think this CTE statement is the closest I've come but I'm still working through it as I'm not too familiar w/ them.  It returns multiple rows which I will have to
    insert into a temp table to update since the resulting row I need is the last in the table.
    ;WITH cteRowNumber
    AS(
    Select DISTINCT
    Row_Number() OVER(PARTITION BY a.LName ORDER BY a.LName ASC, a.Rank_ DESC,b.T2ID ASC) AS RowNumber
    ,a.FName
    ,a.LName
    ,b.LName as xLname
    ,a.MName
    ,b.MName AS xMName
    ,a.Rank_
    ,b.Rank_ AS xRank
    ,b.T2ID
    FROM #temp1 a
    inner join #temp2 b
    ON a.fname = b.fname
    ), cteCursor
    AS(
    Select a.RowNumber,
    a.Fname
    ,a.LName
    ,a.xLname
    ,a.MName
    ,a.xMName
    ,a.xRank
    ,a.T2ID
    ,CASE WHEN a.Rank_ >= a.xRank THEN ISNULL(a.xRank,a.Rank_) else ISNULL(a.Rank_,a.xRank) end AS Alt_Rank_
    ,CASE WHEN a.Rank_ >= a.xRank THEN ISNULL(a.xMName,a.MName) else ISNULL(a.MName,a.xMName) end AS Alt_MName
    ,CASE WHEN a.Rank_ >= a.xRank THEN ISNULL(a.xLName,a.lname) else ISNULL(a.LName,a.xlname) end as Alt_Lname
    FROM cteRowNumber a
    where a.RowNumber = 1
    UNION ALL
    Select crt.RowNumber
    ,crt.FName
    ,crt.LName
    ,crt.xLname
    ,crt.MName
    ,crt.xMName
    ,crt.xRank
    ,crt.T2ID
    ,CASE WHEN Prev.Alt_Rank_ >= crt.xRank THEN ISNULL(crt.xRank,Prev.Alt_Rank_) else ISNULL(Prev.Alt_Rank_,crt.xRank) end AS Alt_Rank
    ,CASE WHEN Prev.Alt_Rank_ >= crt.xRank THEN ISNULL(crt.xMName,Prev.Alt_MName) else ISNULL(Prev.Alt_MName,crt.xMName) end AS Alt_MName
    ,CASE WHEN Prev.Alt_Rank_ >= crt.xRank THEN ISNULL(crt.xLName,Prev.Alt_Lname) else ISNULL(Prev.Alt_Lname,crt.xLName) end as Alt_Lname
    FROM cteCursor prev
    inner join cteRowNumber crt
    on prev.fname = crt.fname and prev.RowNumber + 1 = crt.RowNumber
    SELECT cte.*
    FROM cteCursor cte

  • How should i use the two results sets in one single report data region?

    Hi frnz,
     I have to create a report using the below condition...
    Here my given data  set query gives you the two result sets ,so how should i use that two result sets information in single report....when i accessing that data set query it will take the values off the first result set not for the second result set.
    without using sub report and look up functionality..... if possible
    is there any way to achieve this.....Please let me know..
    Thanks!

    You cant get both resultsets in SSRS. SSRS dataset will only take the first resultset
    you need to either create them as separate queries or merge them into a single resultset and return with ad additional hardcoded field which indicates resultset (ie resultset1,resultset2 etc)
    Then inside SSRS report you can filter on the field to fetch individual resultsets at required places. While merging you need to make sure metadata of two resultsets are made consistent ie number of columns and correcponding column data types should be same.
    In absence of required number of columns just put some placeholders using NULL
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Merging data without set text framing - creating continuous, flowing/wrapping records

    Hi.
    Has anyone figured out a way to merge data without confining each record to set text frame size, hence creating a continuous flow or wrapping of records?
    I need to put in an image, followed by a text description, so I can't merge all the text into one text box.
    I can fit frame to text, then align with set gap, but this is way to time consuming and ineffective when creating a doc of several 100 pages.

    OysterBoy84 wrote:
    Hi.
    Has anyone figured out a way to merge data without confining each record to set text frame size, hence creating a continuous flow or wrapping of records?
    I need to put in an image, followed by a text description, so I can't merge all the text into one text box.
    I can fit frame to text, then align with set gap, but this is way to time consuming and ineffective when creating a doc of several 100 pages.
    Searching Google for "indesign script combine all stories" without quotes turns up a number of links. There's a link to InDesign Secrets that describes a free script that may solve your problem.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Does anynody know if it is possible to merge 2 data sets ?

    hello,
    let's say we have two XMLDataSet ds1 and ds2 of the same
    nature (same data set path), both were loaded, is it possible to
    add the data of ds2 to ds1 and have the region updated?
    thank you.

    It is possible, though you currently have to write code to do
    it. I'll file a bug against myself to add some data set APIs to
    make this much easier. In the mean time, here's an example of how
    you can do it. Hopefully this code doesn't get munged by the forum
    server.
    --== Kin ==--
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Data Set Merging Example</title>
    <script language="JavaScript" type="text/javascript"
    src="../Spry_P1_4_12-14/includes/xpath.js"></script>
    <script language="JavaScript" type="text/javascript"
    src="../Spry_P1_4_12-14/includes/SpryData.js"></script>
    <script language="JavaScript" type="text/javascript">
    // Create a generic data set that will hold all of the data.
    var dsAllData = new Spry.Data.DataSet();
    // Create a data set that will go out and fetch new data.
    var dsDataLoader = new
    Spry.Data.XMLDataSet("../Spry_P1_4_12-14/data/employees-01.xml",
    "/employees/employee");
    // Add an observer to the data set that fetches our data.
    // Whenever it loads new data, we want to append it to
    // dsAllData.
    dsDataLoader.addObserver(function(notificationType, notifier,
    data) {
    if (notificationType != "onPostLoad")
    return;
    if (!dsAllData.data)
    dsAllData.data = [];
    dsAllData.dataHash = {};
    // Get the rows from the loader data set.
    var newRows = dsDataLoader.getData();
    var newRowCount = newRows.length;
    var nextID = dsAllData.getRowCount();
    // Now run through all of the rows that were fetched
    // and update their ds_RowID so that they are unique
    // when we insert them into dsAllData. Note we also
    // have to update the hash table in dsAllData.
    for (var i = 0; i < newRowCount; i++)
    var row = newRows
    row.ds_RowID = nextID++;
    dsAllData.dataHash[nextID] = row;
    dsAllData.data.push(row);
    // Now call loadData() so we can broadcast to any
    // observers of dsAllData that its data has changed.
    dsAllData.loadData();
    // Since none of the regions in this page depend on
    dsDataLoader,
    // we need to manually kick off a load.
    dsDataLoader.loadData();
    </script>
    </head>
    <body>
    <input type="button" value="Append"
    onclick="dsDataLoader.loadData();" />
    <div spry:region="dsAllData">
    <table border="1">
    <tr>
    <th>ds_RowID</th>
    <th>Name</th>
    </tr>
    <tr spry:repeat="dsAllData">
    <td>{ds_RowID}</td>
    <td>{firstname} {lastname}</td>
    </tr>
    </table>
    </div>
    </body>
    </html>

  • Req. for Graph Data set

    Hi all,
    I am in need of a graph data set with the format as: graph name, x coordinate and y coordinate.
    I will appreciate if anybody having this, pl. send it to me. Send some help like, the link address where I can download or an idea how to generate it.
    Thanks in advance,
    Shaw.

    Thank you for your quick response.  I have tried this and got two tables but only input per given time.  Her is an example below of what data needs to be inputted. 
    Todays date
    112.5
    0.004758855
    225
    0.003022459
    337.5
    0.005110742
    450
    0.006503629
    562.5
    0.008989879
    675
    0.007626316
    787.5
    0.003847718
    900
    0.00263287
    1012.5
    0.001321671
    1125
    0.00139917
    1237.5
    0.00314185
    1350
    0.006394711
    1462.5
    0.012263686
    1575
    0.010973433
    1687.5
    0.001998216
    1800
    0.001878826
    1912.5
    0.002599357
    There are 3600 lines of this...all grouped in one moment in time.

  • Merge data/result sets that are't parent/child?

    Hi:
    I've seen a few examples of making a data template so that a BI report can have master/detail data. They make a Q1 data set and a Q2 data set with a bind variable to link the two in a parent/child relationship.
    But what I need is effectively a UNION. I have the same table on multiple database instances and I want to show the grouped results in one report as if it all came from one table. The master/detail examples have a section defining grouping but they group by Q1 (see here)
    http://blogs.oracle.com/BIDeveloper/data_template/
    and I need to group by a column that is in Q1 and Q2 to "merge" the two data sets.
    Has anyone done this?
    Thanks.

    I've messed up what I had! lol
    I'll try and recreate things tomorrow and get it to you, thanks.
    I seem to be having some quirks with all this (or I'm just confused). I initially had a data model that selected a few columns and a count(*) an grouped the results. I modified the data model to not have the count but every time I do "insert table/chart" in RTF the count column shows up as a possible column to move over with >>. I've re-opened the document so it should have the latest data model. Is this normal? A bug? Am I just lost?
    Thanks.

Maybe you are looking for