+ Reply to Thread
Results 1 to 7 of 7

Database across several years

  1. #1
    Registered User
    Join Date
    06-04-2014
    Posts
    34

    Database across several years

    Hi! I would like to create a database for Project at my Company. We have a sheet for each year where we see all Projects in that year. Some of the Projects lasts over new year meaning that, currently, inputs needs to be done in two different workbooks. My plan is to create one centralised database with all Projects and then load them into the workbook for each individual year. I'm testing the "Get Data From Workbook", but that way I get the entire database. I have a few columns which specifies what years that are affected by the projcet, which i'm thinking should be used to define in what yearly Project workbook it should be shown in (the columns only returns true or false). Is there a way to define the Query to only load the data for which the column for 2019 says TRUE? Or, if there is any other solution? Thanks!

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,955

    Re: Database across several years

    You really don't need separate sheets for each year - you could use filters on the master database, or pivot tables, depending on what information you want to summarize.

    Or you could use data queries, one for each year. Once you create the query, just use the tools to filter the appropriate column to limit what data is extracted to the sheet.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    06-04-2014
    Posts
    34

    Re: Database across several years

    Yes, I know that I can filter the database. The yearly plans will be used to generate a gantt chart and it uses about 10 combined IF formulas to figure out what value that should be returned for each and every day times, around 1000 rows. We have already seen that the file gets slow so I dont want unecessary data in the file. So, I'm thinking if it would be possible to set a critera in the Query that is should only import the data for the rows that has a TRUE value in one of the columns.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,903

    Re: Database across several years

    A normalized data base design should have one table for the projects with a field for the year so that it can be filtered/queried on that basis. Putting the data in multiple tables will cause issues in the future. Here is a white paper on data base design that you might find helpful.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,955

    Re: Database across several years

    You should be able to amend the query to choose specific values for any column that you are importing.

  6. #6
    Registered User
    Join Date
    06-04-2014
    Posts
    34

    Re: Database across several years

    Thanks for the database instructions. will have a proper look at that. My aim is have one database in one table. So, so far so good

  7. #7
    Registered User
    Join Date
    06-04-2014
    Posts
    34

    Re: Database across several years

    Quote Originally Posted by Bernie Deitrick View Post
    You should be able to amend the query to choose specific values for any column that you are importing.
    I found how to sort the data. in Power Query I could filter the criteras TRUE or FALSE so I only get the rows i need for the specifc year. Thanks!

+ 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. [SOLVED] Make a list which change in years based on database
    By sealpino in forum Excel General
    Replies: 3
    Last Post: 03-19-2019, 06:08 PM
  2. Replies: 15
    Last Post: 12-18-2015, 02:25 PM
  3. [SOLVED] Age based on DOB; Accounts for leap years. Years old if >2, Months if <2 years old.
    By sharpmel in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-17-2013, 04:20 PM
  4. Replies: 2
    Last Post: 10-16-2012, 11:40 AM
  5. Replies: 4
    Last Post: 11-19-2010, 11:17 AM
  6. Replies: 15
    Last Post: 12-09-2006, 05:27 PM
  7. Replies: 1
    Last Post: 12-05-2005, 08:35 AM

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