+ Reply to Thread
Results 1 to 12 of 12

How to combine large datasets with calculations in Excel

  1. #1
    Registered User
    Join Date
    01-14-2014
    Location
    Santiago
    MS-Off Ver
    Outlook 365
    Posts
    5

    How to combine large datasets with calculations in Excel

    Hi all, hope everyone is doing fine.

    I wanted to ask the opinion of the community on a project I'm currently working on. I want to create a dashboard that will help me keep track of product stock in certain stores, let me create statistical figures on products, categories, and stores, and will alert me on possible inventory breaks (products running out of stock in certain stores).

    The main issue I'm facing is that I have more than 40k combinations of products and stores, hence I'm not sure on how to work on a long term feasible solution since I haven't done something similar in the past. My main objectives are:
    1. 1. Create a dashboard that will give me average numbers of total stock numbers as a general KPI, along with its historical data.
    2. 2. Create lists of products that are likely to run out of stock, following a certain rule (as in, more than 5 products left at the end of the week).
    3. 3. Create datasets of historical data for these numbers (totals, for each product/store combination).
    4. 4. Perform calculations (geographical averages, identify outlyers, products or category averages, etc.) along with their historical evolution.
    5. 5. Easily include weekly new data into the model.

    I'm attaching an example of the input format (simplified), and I'll answer any questions on issues that may have not been clearly depicted. Should I consider using SQL databases? Should I be thinking of creating a VBA script? There are many points where I am not clear, so I hope you guys can help me, any/all advice is welcome.

    Kind regards,
    Pedro
    Attached Files Attached Files
    Last edited by petocities; 06-23-2023 at 10:44 AM. Reason: New title that better reflects the problem

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Guidelines, tips & ideas for working with large datasets

    Nothing that you have mentioned cannot be done with a combination of formulae and charts.

    How 'big' is this database going to be? Is it flatfile (that means just one data table - as you have now), or will it need to be relational (that is, multiple interdependent tables)?

    The size of the dataset is of primary concern - Excel cannot handle an infinite number of rows.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Guidelines, tips & ideas for working with large datasets

    What I have done in the past when working with really large data files, is to have 1 file for the data - with maybe some basic formulas if needed. But then I have a 2nd file linked to the data file when the bulk of the calcs are done. This speeds up calculations and lets you interrogate the data file in many different ways.

    Give this some thought and see if this is something that might help?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Guidelines, tips & ideas for working with large datasets

    Another way is to process the data in an Excel workbook and then use Power BI (if you are in a corporate environment that has it) to create dashboards, but the learning curve is quite steep.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,565

    Re: Guidelines, tips & ideas for working with large datasets

    Here is a example of how a combination of Power Query and Power Pivot might be used to handle large amounts of data to display information about sales.
    1. Use Power Query (Get & Transform) to convert the sales data into records using the following advanced editor code:
    Please Login or Register  to view this content.
    2. Close and Load to the data model which is capable of holding millions of records
    3. In the data model add the following measures:
    Number of Weeks:=DISTINCTCOUNT(Table1[Week])
    Average Sales per Week:=SUM(Table1[Sales])/[Number of Weeks]
    4. Produce two pivot tables which are connected to a slicer
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    01-14-2014
    Location
    Santiago
    MS-Off Ver
    Outlook 365
    Posts
    5

    Re: Guidelines, tips & ideas for working with large datasets

    Thank you all for your responses.

    Quote Originally Posted by AliGW View Post
    Nothing that you have mentioned cannot be done with a combination of formulae and charts.

    How 'big' is this database going to be? Is it flatfile (that means just one data table - as you have now), or will it need to be relational (that is, multiple interdependent tables)?

    The size of the dataset is of primary concern - Excel cannot handle an infinite number of rows.
    The first table will grow on a ratio of about 40k rows weekly. I'm still not sure if the best way to move forward is to create a relational/transactional database for all the additional information I want to include, of it's easier to just make calculations on the spot. In the excel file I uploaded there are several columns for weekly data. My first question is that if it should be necessary to separate that information in rows or other tables in order to be able to create analyses of tendencies, averages, etc. What do you believe?

    Quote Originally Posted by FDibbins View Post
    What I have done in the past when working with really large data files, is to have 1 file for the data - with maybe some basic formulas if needed. But then I have a 2nd file linked to the data file when the bulk of the calcs are done. This speeds up calculations and lets you interrogate the data file in many different ways.

    Give this some thought and see if this is something that might help?
    I was thinking of doing something like this, but since I expect to add ~40k rows every week I'm not sure if Excel will be able to handle it in the future. That's why I was thinking of resorting to a basic text file and SQL queries (I'm no expert, but I think I can manage this).

    Quote Originally Posted by JeteMc View Post
    Here is a example of how a combination of Power Query and Power Pivot might be used to handle large amounts of data to display information about sales.
    Will take a good look at this!

    Thank you all for your help, will try these and hopefully provide good updates.
    Kind regards
    Pedro

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Guidelines, tips & ideas for working with large datasets

    What do you believe?
    For the amount of data you are going to be dealing with, I'd go with the right tool for the job - a database. I've built a few in my time in Access.

    It's probably possible to query an Access database's tables in Excel for the analysis and dashboarding.

  8. #8
    Registered User
    Join Date
    01-14-2014
    Location
    Santiago
    MS-Off Ver
    Outlook 365
    Posts
    5

    Re: Guidelines, tips & ideas for working with large datasets

    Thank you again for your help. I was thinking along the same lines, so I'll try to go with that.
    Last edited by AliGW; 06-22-2023 at 11:15 AM. Reason: Please do NOT quote unnecessarily!

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Guidelines, tips & ideas for working with large datasets

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  10. #10
    Registered User
    Join Date
    01-14-2014
    Location
    Santiago
    MS-Off Ver
    Outlook 365
    Posts
    5

    Re: Guidelines, tips & ideas for working with large datasets

    After mulling over the problem and before changing the post to [SOLVED], I think that the more appropiate title to this post was the following question:

    How do you combine large amounts of datasets with calculations over those said sets in a single functional database/application?

    I believe this reflects more accurately my situation, since I get tons of data on a weekly basis and I have to perform calculations and draw conclusions from these. Any pointers, tips, or guides someone could point me towards to?

    As always, thanks a ton.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Guidelines, tips & ideas for working with large datasets

    Please change the title of the first post so that members see the new question.

    I will move this to The Water Cooler, as it has moved away from being just an Excel query.

  12. #12
    Registered User
    Join Date
    01-14-2014
    Location
    Santiago
    MS-Off Ver
    Outlook 365
    Posts
    5

    Re: How to combine large datasets with calculations in Excel

    Of course, thanks again for all the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 03-15-2018, 10:27 AM
  2. Replies: 4
    Last Post: 11-17-2015, 12:07 AM
  3. Ranking large datasets
    By kwadjo in forum Excel General
    Replies: 2
    Last Post: 03-14-2011, 11:09 AM
  4. Consolidating LARGE datasets
    By samsam in forum Excel General
    Replies: 1
    Last Post: 01-22-2011, 06:22 PM
  5. Spotting trends in large datasets
    By tania_del in forum Excel General
    Replies: 6
    Last Post: 12-04-2009, 01:38 PM
  6. [SOLVED] Need Ideas for My Excel Tips and Tutorials Blog
    By [email protected] in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-28-2006, 11:50 AM
  7. [SOLVED] Need Ideas for My Excel Tips and Tutorials Blog
    By [email protected] in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-28-2006, 11:45 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1