+ Reply to Thread
Results 1 to 6 of 6

power query help

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-02-2019
    Location
    Ottawa,Ontario
    MS-Off Ver
    365
    Posts
    183

    power query help

    Hi, I have a folder with multiple files which are timesheets for the week for a group of employees. Each file is 1 week.

    I'd like to merge all of these files to ultimately have 1 file with the employee number, last and first name in the first 3 columns and the dates in a row. I only need the columns under the date "CODE" ( vac,s,T, DO, etc)

    so it would roughly look like:


    April 7 april 8 april 9
    127091 Jaxton McClain vac S
    145809 name name DO T

    I've included 2 sample files, but ultimately there are roughly 50 sheets (Jan-Dec)

    I've tried playing with power query, but I can't seem to figure it out.

    If someone could possibly transform the 2 files into 1 file, I could try and firgure out what you did, so I could expand.

    Hoping someone is able to assit.

    Thanks in advance,

    Ron
    Attached Files Attached Files

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

    Re: power query help

    OK - so I've had a look.

    You are going to need to be MUCH more specific about where in these source files the data is coming from - tell us the ranges.

    You should also MANUALLY mock up a results file for the data that you want from these two workbooks - what you have dumped in your post is far from clear, I am afraid.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    04-02-2019
    Location
    Ottawa,Ontario
    MS-Off Ver
    365
    Posts
    183

    Re: power query help

    Here is a small sample, but should give an idea of what I would love to see.

    Little context: I want to be able to view 1 file and see all days with all employees. This would help finding trends without the need to open each file.

    hope that helps somewhat.


    Ron
    Attached Files Attached Files

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

    Re: power query help

    Got to be honest - the layout of the source files is going to make this quite difficult.

    I'm going to step aside at this stage as I don't think my PQ skills are quite up to it, but I should add that it's always best to collate data in a completely normalised (flatfile) fashion, and then use formulae and pivot tables to present it in an aesthetic way. It's not good practice to put the cart before the horse.

    But you have what you have and it's too complicated for me (layout and three separate tabs in the workbooks). Good luck with it.

  5. #5
    Forum Contributor
    Join Date
    04-02-2019
    Location
    Ottawa,Ontario
    MS-Off Ver
    365
    Posts
    183

    Re: power query help

    :-( Old school way of preparing reports. I'd love to change the format. Could you perhaps suggest a better layout of the data to make this easier ?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,523

    Re: power query help

    It would need a root and branch reorganisation. As I said, normalised format, which means one row per record. I'm sorry, but it would take too long to put together an example.

+ 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: 5
    Last Post: 10-31-2023, 11:12 AM
  2. Power Query - Feeding dynamic sheet name to Power query
    By egoosen3 in forum Excel General
    Replies: 5
    Last Post: 09-13-2023, 07:41 AM
  3. [SOLVED] [Power Query] How to filter 0 from two columns in power query editor in one step?
    By daliye in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-16-2023, 09:44 PM
  4. Replies: 1
    Last Post: 07-14-2023, 10:15 AM
  5. [SOLVED] Power Query - excel formula translation into Power Query
    By afgi in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 02-19-2020, 03:38 AM
  6. Replies: 4
    Last Post: 02-17-2020, 06:03 AM
  7. Sub-Forum for Excel Power Tools (Power Query, Power Pivot & Power BI)
    By chullan88 in forum Suggestions for Improvement
    Replies: 10
    Last Post: 06-28-2018, 02:25 PM

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