+ Reply to Thread
Results 1 to 5 of 5

Powerquery function

Hybrid View

  1. #1
    Registered User
    Join Date
    04-01-2020
    Location
    Ostend
    MS-Off Ver
    O365
    Posts
    14

    Powerquery function

    Dear all,

    I'm a bit stuck on the power query editor.

    I have a very small dataset with the product name, the process step, the process cost, and the process date.

    I want to create a report per product name, per process step, and per month the cost.

    I thought the PQE editor could automate the report.

    I thought group by account, sum on cost. But I cant create further analysis, like totals per month. What is my mistake?

    Dummy data in attachment.

    Greetings.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: Powerquery function

    You could create a pivot Table in PQ, but it may be just as easy to assemble the data with a pivot table. I have attached a file showing both ways to achieve the expected results.
    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

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: Powerquery function

    Amended to provide month totals in PT
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-01-2020
    Location
    Ostend
    MS-Off Ver
    O365
    Posts
    14

    Re: Powerquery function

    Thx Alansidman!

    This was the function I was looking for. Was stuck on the group function.

    How can I add a calculated column that adds up the months?

    Like Total January (1) + Total February (2) + Total Months (JanuarY + February) + Difference (%) + Total March + Totals (January + February + March) + Difference (%)

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: Powerquery function

    You cannot do totals for column in PQ. You will need to bring your data to Native Excel and do your totals there.

    See this link for further understanding. https://www.myonlinetraininghub.com/...in-power-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. PowerQuery index match prioritized criteria from 2 columns
    By Imbizile in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2020, 08:52 AM
  2. PowerQuery Function to traverse folders for .dbf files
    By jzimmem in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-24-2020, 11:40 AM
  3. PowerQuery
    By wherdzik in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-08-2020, 03:03 PM
  4. PowerQuery in Excel: Use an Excel table to populate SQL table in PowerQuery
    By joeyslaptop in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-25-2019, 02:33 PM
  5. VBA vs PowerQuery
    By Trachr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-08-2017, 11:50 PM
  6. PowerQuery and VBA
    By Trachr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-08-2017, 12:10 AM
  7. Help with powerquery.
    By stephme55 in forum Excel General
    Replies: 0
    Last Post: 09-01-2016, 07:31 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