+ Reply to Thread
Results 1 to 11 of 11

help refining lots of data via power query

  1. #1
    Registered User
    Join Date
    08-23-2022
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    66

    help refining lots of data via power query

    Hi all,

    I've recently started a job in a factory where excel is used as a tool to keep up with how far along the production line every product is. Well, another program is updated and then people like me click through hundreds of pages and update an excel workbook by coloring in cells in green to build a graph of cells. I know for sure this could be automated and way fancier looking as well but I'm pretty new to excel and get stuck. Tinkering with my own data to create a financial logbook with basic formula's and editable categories is all my experience so far.

    I've made an example workbook that I'll attach that I hope captures both the data I have (the software used does "dump" all its data to another excel file) and what outcomes I am looking for. If anyone could help with my example workbook that would hopefully give me enough pointers to continue learning myself. I've also requested a training for excel, but first have to do a MS projects training.

    The biggest two issues I run into at the moment;
    - refining lots of data towards displaying only what I want in the specific way I want it (one step through power query, or do I need multiple steps?)
    - showing changes through time. So when the data changes, how can I make excel show the difference between today and last week fi

    I find it hard to explain in words so I tried to explain within the workbook example. Thanks in advance for taking a look!

    Cheers, Tom
    Attached Files Attached Files
    Last edited by TtNl; 08-29-2022 at 05:11 AM. Reason: edit attachment

  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,916

    Re: help refining lots of data via power query

    Can I confirm your Office version - is it still Excel 2016?

    In your workbook:

    Formula incorrect, to show intention
    Please update the workbook with manually calculated expected results - non-working formulae are of little use to us.

    I am looking now and may have more questions for you.
    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
    Registered User
    Join Date
    08-23-2022
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    66

    Re: help refining lots of data via power query

    Yes it is, sorry about that! Anything else that I missed?

  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,916

    Re: help refining lots of data via power query

    As requested, please update the sample workbook.

  5. #5
    Registered User
    Join Date
    08-23-2022
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    66

    Re: help refining lots of data via power query

    Done, I think. Decided to leave the part of only calculating workdays out as the example source data had weekends dates in it as well and it would require me to recalculate everything. I think this wouldn't be too difficult to adjust later.
    Last edited by AliGW; 08-29-2022 at 05:14 AM. Reason: Please DON'T quote unnecessarily!

  6. #6
    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,916

    Re: help refining lots of data via power query

    Does it HAVE to be a PowerQuery solution?

  7. #7
    Registered User
    Join Date
    08-23-2022
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    66

    Re: help refining lots of data via power query

    No. I assumed that was the only way to import data from another worksheet. The software updates a read-only excel file once every night. That's my data source.
    Only using power query to "copy" the data and then refining it another way instead of directly with power query is totally fine as well.
    Last edited by AliGW; 08-29-2022 at 05:23 AM. Reason: Please DON'T quote unnecessarily!

  8. #8
    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,916

    Re: help refining lots of data via power query

    I've had a good look and I am afraid I don't understand the data and how you are trying to summarise it. Someone elwe will, I am sure.

    PQ is not required to summarise data from one worksheet to another - it can be done with formulae.

  9. #9
    Registered User
    Join Date
    08-23-2022
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    66

    Re: help refining lots of data via power query

    Thank you for your time, I hope either that or someone will ask for clarification, as I find it hard to get my intention across.

  10. #10
    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,916

    Re: help refining lots of data via power query

    Don't worry - someone will get it.

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

    Re: help refining lots of data via power query

    This formula based proposal for the desired result A sheet employs four helper columns (S:V) which may be moved and/or hidden for aesthetic purposes.
    1. Column S is populated using: =IFERROR(INDEX(Table1[order no],MATCH(0,INDEX(COUNTIF(S$8:S8,Table1[order no]),,),)),"")
    2. Column T is populated using: =IFERROR(AGGREGATE(14,6,Table1[completion date]/(Table1[article no]=B$6)/(Table1[article status]="active")/(Table1[order no]=S9),1),"")
    3. Column U is populated using: =IF(T9="","",AGGREGATE(15,6,Table1[quantity]/(Table1[order no]=S9)/(Table1[completion date]=T9),1))
    4. Column V is populated using: =IF(U9="","",MAX(1,SUM(U$9:U9)-1))
    5. Cells A9:A13 are populated using: =IFERROR(AGGREGATE(15,6,S$9:S$14/(ROWS(A$9:A9)=V$9:V$14),1),"")
    6. Cells B9:B13 are populated using: =IF($A9="","",SUMIFS(T$9:T$14,$S$9:$S$14,$A9))
    7. Cells C9:C13 are populated using: =IF($A9="","",SUMIFS(U$9:U$14,$S$9:$S$14,$A9))
    8. Cells E9:Q13 are populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    9. Cells E9:Q13 are conditionally formatted using: =ISNUMBER(E9)
    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.

+ 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] 2 fields checker- Request for alternative option in Power Query or Power Pivot
    By Shareez Saleem in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-15-2020, 08:36 AM
  2. Power Query: Add Data to a Query
    By andrewc in forum Excel General
    Replies: 1
    Last Post: 09-11-2020, 01:46 PM
  3. [SOLVED] How to access data via VBA from a Connection Only Power Query query.
    By MLAN_75 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2020, 11:45 AM
  4. [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
  5. Replies: 4
    Last Post: 02-17-2020, 06:03 AM
  6. Excel Power Query Refresh or Access Query - 2nd Query Run is faster
    By Steveapa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2020, 10:16 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