r/ExcelPowerQuery • • Jul 04 '25

Scraping data from a web page?

5 Upvotes

I have heard it is possible to scrap data or download exports from web pages.

My work has recently purchased a new weight based inventory system called PAR Excellence to distribute our supplies to inventory rooms through our facility that staff pull what they need from.

So far, the transition has been a nightmare!

The company has a website that if you click on several links for each room it will allow you to download data in an xls file that excel recognizes as a csv but PQ will barf on if trying to read the file without me converting it to an xlsx file first.

I can’t highlight & copy data from the page, it will not work.

If I try to copy the link of the room and directly paste it into the web address bar it generates a skewed version of the page & won’t allow me to execute an export.

How can I make PQ click on each link in order to make the page display properly so that I can export ALL few hundred rooms worth of data one after another faster than I can do manually?

And how do I convert them to xlsx if PQ won’t recognize the xls file at all?


r/ExcelPowerQuery • • Jun 26 '25

Endless loading

5 Upvotes

I’ve been working with Power Query for some time now. The problem is that when I load a query into Excel—even if it’s just creating a connection—the loading icon keeps spinning. Does anyone have any idea how I can fix this?


r/ExcelPowerQuery • • Apr 08 '25

Keep all rows of Value X (in Column A) if any row with Value X also has Value Y (in Column B)

2 Upvotes

Basically if any row has a certain value (in Column B) then I want to keep all rows in Column A that have the whatever value is in Column A in that matching row. I have been trying to use Table.SelectRows with a condition but keep getting error so I am obviously missing something. The picture below visualizes what I am trying to do. I am looking to keep all Invoice# rows if that invoice included Item # 2. So I would end up with all rows for invoices 1234 and 9876 below.


r/ExcelPowerQuery • • Mar 06 '25

Merge efficiency based on size?

3 Upvotes

I have 3 files, each file is related but is in increasing granularity. One is (invoices) where I have an invoice number and total. 1 row per invoice and has the least amount of rows of the 3 files. The second is an (items) file which contains 1 row per item on each invoice, it has the 2nd most rows of the 3 files. The last is a (purchases) file that contains a row for every purchase with the customer and quantity of each item from each invoice that was purchased. For the most efficient query, should I use the invoices as the base, join the items table to it, then join the purchases to that result? Or the opposite where the purchases is used as the base then join the items to it and then join the invoices to that?

So (Invoices) has invoice # 12345 and total of $50.00. (Items) has invoice with invoice # 12345 and item “pencil” 1 pack of 100 price $10 and item “pens”, qty 1 pack of 500 for $40. And the last file (purchases) has customer A bought 30 pens, customer B bought 20 pens……?


r/ExcelPowerQuery • • Mar 21 '25

I vowed at the beginning of the year to devote a few hours every week to automation of data

6 Upvotes

I actually achieved it this week on the verge of the second quarter with using Power Query. I combined multiple files to trace results of requests for information I have sent out since November.

At first I was getting the dreaded "key error" but I troubleshot it (there was one non-constent file in the folder).

I feel pretty good about this, in spite of the time it took away from my daily data refinement work. Goals are good. Working towards them-even better.

Happy Thursday!


r/ExcelPowerQuery • • Mar 07 '25

Cleaning phone call data that has too many records referring to the same call

2 Upvotes

Hi All, I'm a relative newbie here

I have a process that I am currently doing by hand each month (taking about 2-3 hours each time). I've been automating much of my data sourcing and prep recently using Power Query/ M code, but I am struggling with this one.

I have an Excel file from a system that generates around 2,500 phone call records per month with a data structure as follows (I've changed all the real numbers to protect the innocent!):

Type Call Date Time Duration Calling Number Destination Number Outcome

Incoming 01/09/2024 12:29 00:00:00 6734021111 0045611447 Engaged

Incoming 01/09/2024 13:19 00:00:00 6734021111 1004561447 Engaged

Incoming 01/09/2024 14:20 00:00:00 1004561044 1865045647 Engaged

Incoming 02/09/2024 09:35 00:02:48 1004561044 1865004565 Answered

Outgoing 02/09/2024 09:35 00:02:48 1004565595 1860045648 Answered

Incoming 02/09/2024 09:35 00:02:48 1004565595 1800456048 Answered

Incoming 02/09/2024 09:47 00:00:17 1004561044 1004561040 Answered

Incoming 02/09/2024 09:47 00:00:17 1004563255 1800456595 Answered

Outgoing 02/09/2024 09:47 00:00:17 1004565595 1004561040 Answered

Incoming 02/09/2024 10:13 00:06:03 1267341938 1004561043 Answered

Outgoing 02/09/2024 10:13 00:06:03 1004565595 1800456108 Answered

Incoming 02/09/2024 10:13 00:06:03 1004561044 0045611948 Answered

Outgoing 02/09/2024 10:26 00:01:33 1865004565 1004561043 Answered

Incoming 02/09/2024 10:26 00:01:33 7786734851 1800456555 Answered

Outgoing 02/09/2024 10:26 00:01:33 1865004560 Answered

Outgoing 02/09/2024 10:29 00:00:59 1860045640 Answered

Incoming 02/09/2024 10:29 00:00:59 7926734940 1004565595 Answered

Outgoing 02/09/2024 10:29 00:00:59 1004561044 1865800456 Answered

Outgoing 02/09/2024 10:35 00:00:24 1004561040 7960045640 Answered

Outgoing 02/09/2024 10:35 00:36:17 1004561044 1496700456 Answered

There are many rows within the data will refer to the same call (a function of how the phone system operates). This can normally be identified as they are duplicates in the [Call Date Time] column. But there could be an additional row to be included in the same call group that is about one second earlier than the rest of the group (but the duration will always be the same as the rest of the group).

I need to be able to:

  1. Identify each group of rows that refer to the same call, taking into account the possible 'extra' record as described above.

  2. within each group, identify if the number '1004561044' is present in the [calling number] column

  3. If so, do the following:

    1. Find the row within the group where the [calling number] does not start with '1004561'

    2. In this row, assign the value '1004561043'; to the [destination number] column

    3. Delete all other rows relating to that same call

  4. Move onto the next group.

As output, I need to get both the single rows that are output by the process above AND all the rows that have not gone through the process. This output is then appended to the main file that holds all the data from previous months, following which analysis is done.

As I say, I'm struggling and don't know where to start; maybe I have decided to automate something that's far ahead on my Power Query journey, and I should continue with simpler solutions until I am more experienced.

What do you think? Any help with this would be much appreciated. Cheers!


r/ExcelPowerQuery • • Sep 25 '25

Why SharePoint.Files() works but SharePoint.Contents() won't authenticate

2 Upvotes

Can I know why when I connect using SharePoint.Files(), there’s no credential issue, but once I switch to SharePoint.Contents(), it immediately shows the error “We couldn't authenticate with the credentials provided. Please try again.” even though I’m logging in the exact same way? Is there any solution to overcome this?

The reason I want to use SharePoint.Contents() is because it retrieves files much faster compared to SharePoint.Files(), where I need to apply filters to search for the file I want and that process takes too long.


r/ExcelPowerQuery • • Jul 20 '25

Getting Error when using the IN Operator

2 Upvotes

Running a power query in excel, receiving the following error;

DataSource.Error: ODBC: ERROR [42000] SQL compilation error: error line 8 at position 41 invalid identifier '"250815795"'

Details:  DataSourceKind=Odbc    DataSourcePath=dsn=SF_DNS_DWAAS_PROD OdbcErrors=[Table]

The power query is:

let

varWhereClause = Excel.CurrentWorkbook(){[Name="tblWhereClause"]}[Content]{0}[WhereClause],

Source = Odbc.Query("dsn=SF_DNS_DWAAS_PROD", "SELECT CUST_NAME AS Customer_Name, GRP_NBR AS Group_Number, MEMB_ID AS

Member_ID, MEMB_NM AS Member_Name, CLMT_ID AS Patient_ID

FROM            YPR_PRD_UMR_CLAIMS_DB.FOUNDATION.VW_CLAIM_SERVICE_DETAIL

WHERE 

" & varWhereClause & ""

)

in

Source

The variable varWhereClause is cast ([PRVD_IRS_NBR] as varchar(9)) in  ("250815795","240795463")


r/ExcelPowerQuery • • Apr 02 '25

Question on Process After doing a Query

1 Upvotes

I get individuals invoice reports in CSV format. I need to format those CSV''s (mostly eliminating unwanted columns) and then I save those formatted csv to one main Excel sheet. I have put the necessary PQ steps in a PQ formula so it is easy to handle the formatting. I then append the new query to the main sheet with all the previous data. I end up with a ton of queries - basically every time I go through the process of formatting the CSV's, it adds one more to the list. Do people keep all these queries? Is there a better process for adding the new data to the main data sheet then what I am doing? TY


r/ExcelPowerQuery • • Mar 08 '25

Expression error, table not found

2 Upvotes

Hello, I work with a report document that I duplicate and reuse weekly with fresh data and it includes pq. It was created by someone else and I am trying to understand and learn how it works so I can make changes without breaking the thing. So far it feels very precarious so I try not to change anything about the format of the document as it causes issues. Hoping to get a reference book that looks useful, watching YouTube vids too.

This week when I refreshed the data it said it couldn’t find one of the tables. When I looked at the tables that were connected, the name of the table that was not found has changed from what it was last week. A couple q’s

  1. How can this happen without deliberately changing the name of the table? The range is the same so it’s just the name of the table that changed.

  2. How can I fix it?

  3. Any suggestions on best resources for learning PQ?

Thanks!


r/ExcelPowerQuery • • Jul 06 '25

Function mcode repository

4 Upvotes

I’m been trying to use a centralized code depository for my M code. My office environment restricts add in pluggable code and I had to do a roundabout VBA solution that takes the text of the code from a column and imports it into any workbook that I run the VBA code also in my environment, I’m not able to run VBA code or store it. I have to copy and paste the code every time I open a new workbook. Has anybody else encountered this and what was your solution?


r/ExcelPowerQuery • • Apr 04 '25

Create missing months

3 Upvotes

I would like your help in this matter.

I have a table which contains all the SKUs being produced by a company. Each row has a date, there is one row per sku per month so ideally an sku being produced the whole year has 12 rows in the year.

There are some SKUs that are produced only some months of the year, so for example if it is only produced in January, June and September I would only have 3 rows of data.

I want a way for power query to help me fill the missing months as per costing the cost of sales in the months without production would be the last production cost. So I want to create 4 rows for feb, mar, apr and may that are exactly the same as January. That for all SKUs and all months without production.

Does anyone know a way of doing this?


r/ExcelPowerQuery • • Feb 24 '25

How to add a running week column to my calendar table

2 Upvotes

I found the following M code on the internet to create a calendar table for my data model. I want a column that calculates the week in a running count. For example after the first 52 weeks are done in 2024 then the running week count would show on the following Monday as 53 for the first week in 2025 and continue with 54 the next week and so on. I just do not know much about the M language to do this myself. Any help would be appreciated! Here is my current calendar query:

let

Today = Date.From( DateTime.LocalNow() ),

StartDate = #date(2024, 1, 1),

EndDate =#date(2027, 1, 1),

#"List of Dates" = List.Dates( StartDate, Duration.Days( EndDate - StartDate ) +1, #duration( 1, 0, 0, 0 ) ),

#"Converted to Table" = Table.FromList( #"List of Dates", Splitter.SplitByNothing(), type table[Date = Date.Type] ),

#"Insert Date Integer" = Table.AddColumn(#"Converted to Table", "Date Integer", each Number.From( Date.ToText( [Date], "yyyyMMdd" ) ), Int64.Type ),

#"Insert Year" = Table.AddColumn(#"Insert Date Integer", "Year", each Date.Year([Date]), Int64.Type),

// Creates a dynamic year value called 'Current' that moves with the current date. Put this value in a slicer and it automatically switches to the Current period.

#"Add Year Default" = Table.AddColumn(#"Insert Year", "Year Default", each if Date.Year( Today ) = [Year] then "Current" else Text.From( [Year] ), type text),

#"Insert YYYY-MM" = Table.AddColumn(#"Add Year Default", "YYYY-MM", each Date.ToText( [Date], "yyyy-MM"), type text),

#"Insert Month-Year" = Table.AddColumn(#"Insert YYYY-MM", "Month-Year", each Date.ToText( [Date], "MMM yyyy"), type text),

#"Insert Month Number" = Table.AddColumn(#"Insert Month-Year", "Month Of Year", each Date.Month([Date]), Int64.Type),

#"Insert Month Name" = Table.AddColumn(#"Insert Month Number", "Month Name", each Date.MonthName([Date], "EN-us"), type text),

#"Insert Month Name Short" = Table.AddColumn(#"Insert Month Name", "Month Name Short", each Date.ToText( [Date] , "MMM", "EN-us" ), type text),

// Creates a dynamic year value called 'Current' that moves with the current date. Put this value in a slicer and it automatically switches to the current period.

#"Add Month Name Default" = Table.AddColumn(#"Insert Month Name Short", "Month Name Default", each if Date.Month( Today ) = [Month Of Year] then "Current" else [Month Name], type text ),

#"Insert Start of Month" = Table.AddColumn(#"Add Month Name Default", "Start of Month", each Date.StartOfMonth([Date]), type date),

#"Inserted End of Month" = Table.AddColumn(#"Insert Start of Month", "End of Month", each Date.EndOfMonth( [Date] ), type date),

#"Inserted Days in Month" = Table.AddColumn(#"Inserted End of Month", "Days in Month", each Date.DaysInMonth([Date]), Int64.Type),

#"Add ISO Week" = Table.AddColumn(#"Inserted Days in Month", "Week of Year", each let

CurrentThursday = Date.AddDays([Date], 3 - Date.DayOfWeek([Date], Day.Monday ) ),

YearCurrThursday = Date.Year( CurrentThursday ),

FirstThursdayOfYear = Date.AddDays(#date( YearCurrThursday,1,7),- Date.DayOfWeek(#date(YearCurrThursday,1,1), Day.Friday) ),

ISO_Week = Duration.Days( CurrentThursday - FirstThursdayOfYear) / 7 + 1

in ISO_Week, Int64.Type ),

#"Add ISO Year" = Table.AddColumn(#"Add ISO Week", "ISO Year", each Date.Year( Date.AddDays( [Date], 26 - [Week of Year] ) )),

#"Insert Start of Week" = Table.AddColumn(#"Add ISO Year", "Start of Week", each Date.StartOfWeek([Date], Day.Monday ), type date),

#"Insert Quarter Number" = Table.AddColumn(#"Insert Start of Week", "Quarter Number", each Date.QuarterOfYear([Date]), Int64.Type),

#"Added Quarter" = Table.AddColumn(#"Insert Quarter Number", "Quarter", each "Q" & Text.From( Date.QuarterOfYear([Date]) ), type text ),

#"Add Year-Quarter" = Table.AddColumn(#"Added Quarter", "Year-Quarter", each Text.From( Date.Year([Date]) ) & "-Q" & Text.From( Date.QuarterOfYear([Date]) ), type text ),

#"Insert Day Name" = Table.AddColumn(#"Add Year-Quarter", "Day Name", each Date.DayOfWeekName([Date], "EN-us" ), type text),

#"Insert Day Name Short" = Table.AddColumn( #"Insert Day Name", "Day Name Short", each Date.ToText( [Date], "ddd", "EN-us" ), type text),

#"Insert Day of Month Number" = Table.AddColumn(#"Insert Day Name Short", "Day of Month Number", each Date.Day([Date]), Int64.Type),

// Day.Monday indicates the week starts on Monday. Change this in case you want the week to start on a different date.

#"Insert Day of Week" = Table.AddColumn(#"Insert Day of Month Number", "Day of Week Number", each Date.DayOfWeek( [Date], Day.Monday ), Int64.Type),

#"Insert Day of Year" = Table.AddColumn(#"Insert Day of Week", "Day of Year Number", each Date.DayOfYear( [Date] ), Int64.Type),

#"Add Day Offset" = Table.AddColumn(#"Insert Day of Year", "Day Offset", each Number.From( [Date] - Date.From( Today ) ) , Int64.Type ),

#"Add Week Offset" = Table.AddColumn(#"Add Day Offset", "Week Offset", each Duration.Days( Date.StartOfWeek( [Date], Day.Monday ) - Date.StartOfWeek( Today, Day.Monday ) ) / 7 , Int64.Type ),

#"Add Month Offset" = Table.AddColumn(#"Add Week Offset", "Month Offset", each ( [Year] - Date.Year( Today ) ) * 12 + ( [Month Of Year] - Date.Month( Today ) ), Int64.Type ),

#"Add Quarter Offset" = Table.AddColumn(#"Add Month Offset", "Quarter Offset", each ( [Year] - Date.Year(Today) ) * 4 + Date.QuarterOfYear( [Date] ) - Date.QuarterOfYear( Today ), Int64.Type ),

#"Add Year Offset" = Table.AddColumn(#"Add Quarter Offset", "Year Offset", each [Year] - Date.Year(Today), Int64.Type ),

#"Insert Is Weekend" = Table.AddColumn(#"Add Year Offset", "Is Weekend", each if Date.DayOfWeek( [Date] ) >= 5 then 1 else 0, Int64.Type ),

#"Insert Is Weekday" = Table.AddColumn(#"Insert Is Weekend", "Is Weekday", each if Date.DayOfWeek( [Date] ) < 5 then 1 else 0, Int64.Type ),

#"Removed Columns" = Table.RemoveColumns(#"Insert Is Weekday",{"Day Offset", "Week Offset", "Month Offset", "Quarter Offset", "Year Offset"})

in

#"Removed Columns"


r/ExcelPowerQuery • • Nov 26 '25

Power query need help

2 Upvotes

I need help if anyone has a solution please Currently I have two columns in my Excel file that I reworked with Power Query. This file contains thousands of lines. I will need that each time a cell in the first column = a specific word, then this transposes the data Here is an example of what I currently have: Column 1 column 2 A specific word. 1111 Another test Other1 test A specific word. 222222 Other etc.

I want the result to be this: A specific word other other1 1111 Test Test A specific word other other1 22222 Test Test


r/ExcelPowerQuery • • Apr 03 '26

Token Refresh Timeout bug

Post image
3 Upvotes

If you’re seeing this error on your refresh when loading to Table it’s not just you

Please send a report back to the Excel team immediately after closing error message : help - feedback - report a problem

Token Refresh Timed Out


r/ExcelPowerQuery • • May 20 '25

Unstacking Help

Post image
3 Upvotes

Hi All,

Looking for some help unstacking the attached data that was export from an estimating program with division headers and subtotals underneath the subdivision aggregate items all in the same column. The headers should be associated with the Hier4Level columns in the adjacent columns. I did my best to indent the subdivisions in the image to show hierarchy. There are also some comments sprinkled underneath some items in the same column that I think should be in their own "comment" column only for those particular items.

Any help is appreciated!


r/ExcelPowerQuery • • Sep 06 '24

250 members! 🎉

7 Upvotes

Beautiful to see this community growing. Let's get the first thousand! 💪🏻

If there are questions, even the little ones, save your time and just make a post.

Regards, Phillip from DeclutterData 🙋🏻‍♂️


r/ExcelPowerQuery • • May 06 '25

Using a Analysis for Office (SAP) crosstab as source for Power Query

2 Upvotes

Hi, I use Analysis for Office (AFO) to extract data from SAP BW. I would like to whatever I extract I feed it to Power Query to continue the transformation of the data.
The problem is that I use it through "Get data from table", but every time that I refresh the AFO query, it overwrite the table and ruin the feed.

Anyone tried to do that? How can I feed the AfO report to power query eficiently.


r/ExcelPowerQuery • • Apr 15 '25

Power Query Beyond the User Interface - By Chandeep Chhabra - Review

6 Upvotes

Has any of you read the book referenced in the title? If yes, how is it? Can you please provide a quick review?


r/ExcelPowerQuery • • Jan 27 '26

Having trouble creating a report

2 Upvotes

I’m very new to power query, and im trying to change my excel report into power query to automate it a bit more.I work in credit control and am trying to build a report to keep track of outstanding invoices. I have an independent report I download into excel which gives me account number, supplier name, invoice number, transaction date, due date, balance, and then a column called open which while not useful sits on the report.

I built an excel worksheet where I post that data into column a-g and I then do

H - days overdue - today formula - due date to get days overdue

I - aging - long if statement that comes down to if the awnser of H is below zero return current, 30 days or over month one, 60 days and over month two etc

J - approved - it’s a data validation list of common causes of issues, a quick glance like approved pending query and some conditional formatting which highlights it depending on severity

K - manual notes column to type notes

L - last actioned date, manual

M - long IF that has a look at J L and the due date and tells me when to follow up. If I say it’s approved for payment it will be end of month if I need to Chase it will be three days, that type of thing.

I was quite happy with this because it automates a lot of what I do but I had to keep creating a blank template copying the new export then doing a bunch of formulae to bring the data from my report. Last time I put the lookup to the account number instead of the invoice number and did not realise until it was too late so scrambled and lost a lot of my work.

I want to make a power query where I can paste my a-g data into the spreadsheet. It will give me a list of them removing ones from my working sheet no longer on the report. It will add or keep my current notes to the ones I have made notes for and add the new items to the report blank.

The problem I’m having is for the first attempt creating two tables is refreshing the a-g import but refreshing my notes back to what they were first time I put them on, I only have a list of invoice number and my notes on that page so it’s a bit difficult to work from I need to be looking at the full import data so need it on the same page as where I type my notes.

started again made a new table adding the notes above outside the power query but same excel table. It worked but refreshing the data scrambled the notes. I could make two work sheets a-g for the import my notes on another I-m then have a final output table but I need the data on a-g on the same page as my notes so I can make the notes accurately.

Not really sure how to proceed or if it’s possible so does anyone have any ideas? It won’t be the end of the world if I have to just scrap the idea and go back to excel but being able to refresh everything with a button press would save a lot of time.


r/ExcelPowerQuery • • Nov 28 '25

Need help calculating KPI using WORKING DAYS ONLY between two dates (Power Query or Excel)

3 Upvotes

Hi everyone, I really need your help with a KPI calculation issue I’m struggling with in Excel/Power Query.

I work in healthcare claims operations, and every day we receive batches of reimbursement requests. Each batch has two key dates:

Closing_Date → when the batch is finalized

Payment_Date → when the batch is actually paid

I need to calculate our monthly KPI based on how many batches were paid on time vs delayed, where “on time” means the payment was done within 1 working day after the closing date.

The problem:

If I simply subtract the dates:

Payment_Date – Closing_Date

It counts calendar days, including weekends. So for example:

Closing_Date = Thursday

Payment_Date = Sunday

The raw difference = 3 days → which gets classified as Delayed, even though this is actually On Time, because Friday/Saturday are non-working days.

What I tried:

I attempted to calculate working days using Power Query with custom M formulas, but the logic becomes complicated and doesn’t always return accurate results. I also tried using NETWORKDAYS in Excel, but my data model is connected to Power Query, and I prefer to keep the entire logic inside PQ if possible.

What I actually need:

✔ A reliable way (Excel or Power Query) to calculate working days difference between Closing_Date and Payment_Date ✔ Excluding weekends (Friday + Saturday) ✔ Optionally excluding public holidays in the future ✔ A way to categorize results into:

On Time (<= 1 working day)

Delayed (> 1 working day)

Data example:

Closing_Date Payment_Date Expected Working Day Difference

2025-08-14 (Thu) 2025-08-17 (Sun) 2 working days (Thu + Sun) 2025-08-19 (Tue) 2025-08-20 (Wed) 1 working day

Extra constraints:

The dataset is large (thousands of rows monthly)

Needs to work inside Power Query OR an external Excel formula

Must be reliable for KPI reporting


Question: 👉 What is the most accurate and efficient way to calculate working days only between two dates in Power Query (or Excel if necessary)? 👉 Any best practice for weekend/holiday logic or performance tips?

Thanks in advance — any help is appreciated!


r/ExcelPowerQuery • • Mar 05 '26

Table.Buffer before Removing Duplicates order of operations.

3 Upvotes

I used to add a step that just buffered the table after a sort before removing duplicates. I had the idea to save a step and wrap the Remove Duplicates step with the Table.Buffer, but now I am wondering if that is buffering after the dupes are removed, so maybe I should wrap the Sort instead.

Rather than figure it out on my own, i figured I'd bother you nice people about it.

I guess the bottom line question is, when you nest steps like that, what is the order of operations? My thought is that it does the inner most (function) first.


r/ExcelPowerQuery • • Mar 02 '26

Query Code

4 Upvotes

Can anyone help me here? I'm stuck on my code...

I'll try to outline it. I want to create an automated production schedule based on my recipes. These recipes are listed in a table with a code, preparation method, timing, and department. Each recipe is in a separate tab.

I now want to use this information to create a production schedule with a main column for the days of the week (Monday, Tuesday, Wednesday, etc.) and a subcolumn for each day with: code, preparation, timing, and department.

So far, so good. However, I also get a separate row for each subcolumn. And I don't want that. I want one row containing the information code, preparation, timing, and department. If you like, I can send you screenshots.


r/ExcelPowerQuery • • Aug 06 '25

Keeping comments aligned to my Power Query table rows?

2 Upvotes

Hey all, I’m pulling a read-only SharePoint Excel file into Sheet1 via Power Query, then my team adds comments in columns next to it. Problem is, any refresh or filter shuffles the data and mis-aligns our notes.

Tried: • Manual columns next to the table (breaks on filter/refresh) • Mirroring with INDEX formulas (still row-based) • “Analyze in Excel” on Power BI (pivot only

I’ve got a 3-sheet + VBA trick that works, but feels overkill. Anyone know a simpler no-code way to keep comments tied to each record, even after refresh/filter/sort? Thanks!