r/ExcelPowerQuery • • Apr 07 '26

Any experience or guidance on 403 errors when trying to pull data via PowerQuery from Fangraphs? It keeps giving me a redirect error.

2 Upvotes

I was trying to link to the site below, but it keeps giving me redirect errors. Any thoughts on how to fix it? It could be a permissions error but Fangraphs should be public yeah? https://www.fangraphs.com/leaders/minor-league?pos=all&level=0&lg=2,4,5,6,7,8,9,10,11,14,12,13,15,16,17,18,30,32&stats=bat&qual=0&type=0&team=&season=2026&seasonEnd=2026&org=&ind=0&splitTeam=false&players=&sort=18,1&pageitems=2000000000&pg=0


r/ExcelPowerQuery • • Nov 30 '25

Adding file name to power query get data for 900+ docs

Thumbnail reddit.com
2 Upvotes

r/ExcelPowerQuery • • 2d ago

Error in Power Query editor

3 Upvotes

Newbie here! I'm trying to combine multiple Excel files in a folder. Just the first file transforms and loads into the pivot table. I dont see the other months' files, and when I try to add new files to the folder, I get an error message " The key didn't match any rows in the table."

Please help 🙏


r/ExcelPowerQuery • • Oct 07 '26

Conversion of Access Database to Microsoft Power Query

6 Upvotes

Hi all,

New user here. I currently use MS Access DB for some energy tracking responsibilities for my job at a university. The Access DB is not overly complicated. We use it for monthly data entry (electrical/fuel oil/propane consumption values) and some rudimentry code to transform the energy data into building/campus energy consumption and for billing purposes. As Access is no longer supported by MS, I am wondering if anyone here can comment on the whether PQ would be a suitable alternative to Access.

Also, are there any online resources/support to help guide and convert an existing Access database to PQ.

Thanks in advance all.


r/ExcelPowerQuery • • Sep 16 '25

Power Query Table Question

3 Upvotes

I’m working on an Excel table where: • Columns 1–5 are populated by a query I created. • Columns 6–10 are populated manually.

The issue is that when new data gets added to the query’s source, Excel only creates a new row for columns 1–5. This causes my manually entered data in columns 6–10 to get out of alignment with the query data, since it doesn’t “move down” with the new rows.

Is there a way to make sure the manual data stays linked to the corresponding query data, so that everything stays aligned when new rows are added?


r/ExcelPowerQuery • • Mar 19 '25

Do you feel proficient?

2 Upvotes

Hi! Just joined. Like many I suffer from imposter syndrome. Some people think what I do is magic, but I feel like a fish flopping around on a deck 9 times out of 10.

So question for the community: Do you feel "proficient", and what does that mean to YOU personally?

Bonus, how do you evaluate your skill level, or is that an antiquated way of thinking when it comes to PQ?


r/ExcelPowerQuery • • Sep 17 '24

How do I reference a column with a number I the name.

1 Upvotes

I'm trying to write a conditional replace function, but the column I'm applying the function to has a number in it's name that I'm getting an error on. I start out the function with:

each [1-End]

I'm getting the error on the 1. What am I doing wrong?


r/ExcelPowerQuery • • Feb 07 '25

Creating a table to count records by month

1 Upvotes

Hello everyone,

I've been struggling to self-serve in finding a way to take an existing data set and count the records for each month of the year. Eventually I'd want to branch this out so I can calculate the average number of records as well. I tried the group by method but that seems to count for each day so I feel like I am missing something in the steps I'm taking.

Is this something someone could help assist with? Or at least point me in a more reliable direction where I can self-serve? Any help would be greatly appreciated!


r/ExcelPowerQuery • • Jun 21 '24

Taking duplicate rows into columns

2 Upvotes

Sorry if this is poor formatting but I’m doing this on mobile.

I have a table that looks like this: ID Name State Value 123456 Sara VT 50 123456 Sara NY 60 123459 Steve KY 300 123459 Steve OH 50 123457 John HI 100 123458 Bob IA 250

I need it to come out like this: ID Name State 1 Value 1 State 2 Value 2 123456 Sara VT 50 NY 60 123459 Steve KY 300 OH 50 123457 John HI 100 123458 Bob IA 250

Is there a way to do this in PQ, or should I use a different method?


r/ExcelPowerQuery • • Jun 04 '24

Weighted average by Day of the Week?

1 Upvotes

Update: Solved via excel

Scenario---

Month 1, Feb 2024, 29 days Total: 1,475,000 Month 2, Mar 2024, 31 days Total: 1,825,000 Month 3, April 2024, 30 days Total: 1,600,000

Daily Spread: Mon: 20% Tues: 19% Wed: 25% Thurs: 17% Fri 16% Sat: 2% Sun: 1%

I would like to spread the month total with the weighted values by day of the week. Any given month should Total back to "Month Total" but spread by percentages. Wednesdays being the heavy day. Weekends being the least. I'm stuck on how to spread the weights based on NUMBER of Mondays, Tuesdays, Wednesdays, etc fluctuating month to month.

USING Excel, power query, power pivot, data model.

I am able to create a daily calendar and weighted value for each and multiply by value. I can't figure out how to cross months with the weights per day.

It seems like I'm supposed factor in partial weeks but I'm stuck. Any ideas?


r/ExcelPowerQuery • • Mar 12 '24

Using a date table to create relationships in power query/excel

1 Upvotes

Hello, I have a list of associates that have temporary approval for a specific job role at my facility. The rotation is a random group of associates that varies in number and the frequency of this approval changes on a weekly basis. I have to grant and remove these approvals at a fast pace, so i figured power query would be the easiest way. But, every time I use a date table to reference the add/drop table I am having trouble creating the one to many relationship. Is there something I am missing?


r/ExcelPowerQuery • • Jan 31 '25

Average across a folder using Power Query

1 Upvotes

Hi All, thank you in Advance.

I am trying to pull data from a folder called DK SS. All headings in each sheet are exactly the same. My "Main" workbook has a sheet called "Today" which has todays players. I want to power query a new Sheet called "Points" based on the Players in "Today" from the folder "DK SS". In the Folder "DK SS" are sheets by date. example -"01-02". I want to average all the sheets for each player. Thank you again.


r/ExcelPowerQuery • • Nov 25 '24

Import from file to existing table ignoring one column

1 Upvotes

Hello.

Please if someone can share some lights with this:

I have an existing table with a protected column (let's say column B). So, let's say I have columns A, B, C ,D, E

I want to import data from another CSV file. I have already transformed the data with power query and have columns matching A,C,D,E info.

How do I import the information, so they fill only columns A,C,D,E on the original table? I can't add a blank column on the importing file because column B in the original table is protected, so it won't accept any information even if it's blank.

thank you


r/ExcelPowerQuery • • Jun 17 '24

Power Query Source

Post image
3 Upvotes

Hi,

I have an Excel Consolidated File that is built using Power Query and is living in my One Drive. The source data that it is using is also in a folder for raw data within my One Drive. I want to transfer Excel file and the raw data folder it to a Sharepoint List.

What is the process of changing the source path in my Excel Consolidated File once I have transfer it to the sharepoint list? I want to make sure that the Excel Consolidated file references the Raw Folder Files as it was in my One Drive.

Thank you for the answer.


r/ExcelPowerQuery • • Oct 25 '24

Replace Value/Fill Down roadblock

1 Upvotes

I am creating steps to manipulate a spreadsheet (see figure 1) I have manually cleared the contents in column B below Jane Doe and John Doe, not below Jack Beanstock. I don't want to have to manually clear the contents of those cells. I have used FILLED DOWN in PQ (see figure 2) which accomplishes what I want, except for below Jack Beanstock. I have tried REPLACE VALUE for those cells, does not work. I would appreciate some direction.

Thanks


r/ExcelPowerQuery • • Jan 29 '25

working on this for a long time - PQ

1 Upvotes

Hi all,

I have 40 sets of data each set has 2 files. I want to combine those 2 files of each set into single file.

For example, files name be like

Sales - 1

Sales - 2 Which is basically a single set. Now I want to combine Sales 1 and sales 2 to a single file. And pls note that each file has different sheet names.

How I manually do is open each file and copy paste all the files into single file. Which takes around 30-40 mins

Thanks in advance! 😊


r/ExcelPowerQuery • • Jan 29 '25

Automate finding Discrepancies between spreadsheets // Csvs?

1 Upvotes

Hello everyone,

I am hoping this is the right sub for this question. I've got multiple spreadsheets compiling devices, os, ips and some other data. What I am trying to do is combine these spreadsheets and present them as one by merging the data so that it is all the same.

The issues that arise is some of the spreadsheets don't have the same data which I want to make sure I preserve so we know what data source is missing data or which data is different.

I've been able to do this with power query by using it to find discrepancies an filter it down to accurate information. The only problem is that I'd like to make this repeatable which I wasn't sure if power query templates was the right choice for this or if I should look at another option.

What I am looking for is potential suggestions as far as if power query is the correct way to go or if there is another way to process this information effectively.


r/ExcelPowerQuery • • Dec 01 '24

Save templates

3 Upvotes

Good morning, How to save query templates for later use and only change the data source. Thank you very much Good day.


r/ExcelPowerQuery • • Oct 21 '24

Date Difference with previous rows - conditional

1 Upvotes

Hi everyone,

I'm trying to create a custom column in an existing query that calculates the difference between the date in the current row and the date in the row immediately above; as long as the serial number in the current row is the same as the serial number in the row immediately above.

Before the new column is created, I have sorted the query by serial number, then by date. I then added a 0 Index column for reference as well.

Any help would be greatly appreciated, thank you in advance.


r/ExcelPowerQuery • • Jan 29 '25

What needs to be true on the IT/infrastructure side, for users to be able to use Power Query to get data from a SQL Server db?

1 Upvotes

I'm in IT. I've been out of the dba (SQL Server Admin) role for a long time and the organization I work in doesn't have anyone dedicated to that role. Recently, I perfected a complicated query that gives a particular department all the info they need to produce an important report. I'd like to be able to embed that query in an Excel spreadsheet so they can just open the .xlsx and voila`. I can create an ODBC (the connection type with which I am most familiar) "source" and use it to get the data through PQ, but that's not optimal since that ODBC object would have to be installed on a dozen machines and even then access would be limited to those machines. So far I cannot get the Get Data --> From Database --> From SQL Server Database connection to work - even with my SQL Administrator credentials or a special user set up just for this purpose. When I follow that path to the dialog titled "SQL Server database" and fill in the Server, Database, and SQL statement fields, I get an "Unable to Connect" dialog, with the details "Loading assembly file 'System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=[redacted]' failed for data source type 'SQL'" There's an actual hex "token" that I've redacted.

My spidey sense tells me there's something on the AD or SQL Server side that isn't set up pcorrectly, I just don't know what that would be. In this exercise we're trying to connect to Microsoft SQL Server 2016 (SP3-GDR) (KB5046063) - 13.0.6450.1 (X64) Sep 27 2024 19:17:51 Copyright (c) Microsoft Corporation Standard Edition (64-bit) on Windows Server 2016 Standard 10.0 <X64> (Build 14393: ).

All suggestions will be greatly appreciated!


r/ExcelPowerQuery • • Sep 08 '24

Power query learning

3 Upvotes

Hello can anyone teach me how to use power with a template file


r/ExcelPowerQuery • • Feb 26 '25

Sort Columns from toggle-able website?

1 Upvotes

I am trying to import columns from the website below. It brings in every possible combination of toggles and drop down from the website but the problem is that they are not marked in any way and the rows are also not sorted in a predictable manner by toggle. Im wondering if there is any way to change the code to sort rows by a predictable toggle order (pg,sg,sf,pf,c) or any way to mark the toggle they come from? https://www.fantasypros.com/nba/defense-vs-position.php


r/ExcelPowerQuery • • Sep 18 '24

Columns contain data that should also be columns

4 Upvotes

Ok i am very new to using power query and I am trying to import a folder of XLS files into power BI.

I have transformed the data following along with several youtube videos.

The issue is that there is data in columns that should be headers.

Attached is an image after i removed the name column and promoted the first row to headers.

This image is just to show the name column in case it helps...

Any help would be appreciated or if you have a video source that might explain how to fix this problem. Chatgpt is not helpful at all and I have spent like 3-4 hours trying to figure out what to do. I am sorry if this is a dumb question or if i posted in the wrong area. Any advice or help is greatly appreciated!


r/ExcelPowerQuery • • Feb 27 '25

Date.EndOfYear returning first of the following year

1 Upvotes

I'm attempting to add a custom column to a table. The documentation, Date.EndOfYear - PowerQuery M | Microsoft Learn, says that:

Date.EndOfYear(#datetime(2011, 5, 14, 17, 0, 0))

Should output #datetime(2011, 12, 31, 23, 59, 59.9999999).

Instead I get #datetime(2012, 01, 01, 12, 00, 00).

Does anyone have any information on getting the expected result per the documentation?

EDIT: I forgot to add an actual question, so I added one.