r/ExcelPowerQuery • • Nov 28 '25

Copying a value from 1 col to one of multiple based on another column

1 Upvotes

I have a table with 2 columns, a single year (2021,2022,2023,etc) and a value. Does PQ have the ability to create new columns for each year and copy the value into only the associated column in a single step (or 2-3 steps) or do I need to create a conditional column for each year I have? I'd like this to be auto expanded when new years are added.

Ex.

Row1, 2021, $450

Row2, 2021, $100

Row3, 2022, $245

Row4, 2023, $333

Becomes:

Row1,2021,$450,{blank},{blank}

Row2,2021,$100,{blank},{blank}

Row3,2022,{blank},$245,{blank}

Row4,2023,{blank},{blank},$333

(there is other data in the table but these are the relevant columns)


r/ExcelPowerQuery • • Nov 28 '25

Power Query - Popups / Warnings

Thumbnail reddit.com
1 Upvotes

r/ExcelPowerQuery • • Nov 22 '25

Line breaks in CSV files

1 Upvotes

I have a Query that loads CSVs with cells that sometimes have line breaks. Power Query doesn't seem to like this so I have to manually amend the files before loading. I'd appreciate it if anyone had a solution to this.


r/ExcelPowerQuery • • Nov 21 '25

How do I average the sum groups of data without a bunch of pivot tables or groupby functions?

Thumbnail
reddit.com
1 Upvotes

r/ExcelPowerQuery • • Nov 19 '25

Power Query: Appending text from two columns to other columns of a table

Thumbnail
reddit.com
1 Upvotes

r/ExcelPowerQuery • • Nov 11 '25

VBA POSTIX to open an XML file

Thumbnail reddit.com
1 Upvotes

r/ExcelPowerQuery • • Nov 06 '25

Rolling up entries in multiple columns by using column of duplicate references

1 Upvotes

Hi, I've managed to create a Power Query containing different tables of occupancy data for different weeks, that use the same location reference. The occupancy data occupies many columns as it is recorded on an hourly basis. Which functions could I use to aggregate the occupancy data for all of those columns, based on a single, unique room reference shown in the column highlighted with the green fill, below? i.e. I have multiple room 101 entries with data populating columns relating to the record for each week. There are multiple entries in that column relating to 101, but the occupancy data is effectively staggered down and across the columns to the right.


r/ExcelPowerQuery • • Oct 13 '25

Today and random days sharepoint will not let me connect

Thumbnail reddit.com
1 Upvotes

r/ExcelPowerQuery • • Sep 29 '25

Выбор столбцов по названиям заголовков в Power Query

1 Upvotes

Добрый день! Есть перечень наименования столбцов - "Base T-code", "Tyre Size", "family_name", "Base Item Description", "Molds", "season", "market", "Weight Item Code", "Item Status ChangeDT", "2025/9_1", "2025/10_2", "2025/11_3", "2025/12_4", "2026/1_5", "2026/2_6", "2026/3_7", "2026/4_8", "2026/5_9", "2026/6_10", "2026/7_11", "2026/8_12", "2026/9_13", "2026/10_14", "2026/11_15", "2026/12_16" и как сделать так и, возможно ли это, чтобы power query выбирал столбцы по их названию и не привязывался к расположению и в случае отсутствия одного из столбцов (например, "2025/9_1") не выдавал ошибку, а выводил имеющиеся из списка столбцы? заранее благодарю


r/ExcelPowerQuery • • Aug 31 '25

Sick of the Power Query Editor? Try this instead

Thumbnail
github.com
1 Upvotes

I made an Excel add-in called 'On It, Boss!' where you can transform your data with ChatGPT writing M code based on your description of the transformation you want. It's like you're having a conversation with your data; you type in “Group by Department and sum Salary,” and it generates the M code, applies it to your data, saves your steps in a replayable history.


r/ExcelPowerQuery • • Aug 27 '25

Date Issue

1 Upvotes

Hoping someone can help me with a date issue I’m having. I have a table in Powertools that is being populated with some PowerAutomate flows. I’ve confirmed the dates feeding into the table are correct.

The issue I’m having is when creating a query and getting this table from source dataverse, it’s pushing all of my dates out one day.

The “created on” columns of the data feeding in is current day with timestamp 12:00am if that might cause any issues but I can’t see why it would.

I’ve also changed a column to “test” in my table to double check that it is updating correctly and pulling from the right source. Populated with “test” in PQ right away.

Any ideas or help is appreciated!


r/ExcelPowerQuery • • Jul 24 '25

Do you need to make a physical table when connecting to a Power BI semantic model with Power Query?

1 Upvotes

I'm trying to connect to a Power BI semantic model through Power Query in Excel. It gives you the option to insert a Pivot table or a regular table. What do you do if you have a huge number of rows, don't want to make a physical table (at least with all the data you want to work with), and want to manipulate it in Power Query? Can you just connect it straight into Power Query as a connection? Is the only way to make a physical table, then pull from that table into Power Query to manipulate it?

I guess you could just make a tiny pivot table and hide it away. You'd have to make sure you Refresh All every time you want to refresh whatever end tables you have.


r/ExcelPowerQuery • • May 27 '25

Help Power Query Excel

Post image
1 Upvotes

And I hope everyone is doing well. I've been trying to do this transformation in Power Query Excel for a few days now, and I can't. The idea is to take the data from the source table and leave it in the same way as the destination table. If anyone can give me some help, I'm about to give up lol


r/ExcelPowerQuery • • May 27 '25

Ajuda com Power query excel

Post image
1 Upvotes

E aí espero que todos estejam bem. Faz uns dias que estou tentando fazer essa transformação no Power query Excel, e não estou conseguindo. A ideia a pegar os dados tabela origem e deixar no jeito da tabela destino. Se alguém puder dar uma luz já estou a ponto de desistir kkk


r/ExcelPowerQuery • • May 16 '25

Tracking data source in file?

1 Upvotes

I have a lot of files in a directory. All of them have unique file names. They are all xlsx files. The name of the 1 and only sheet in each workbook is the same name as the workbook. All of the column in every workbook/sheet are always the same. I need PowerQuery to add the name of the source workbook/sheet next to every row the data came from in the last column under the header “Source”. How do I do this?


r/ExcelPowerQuery • • May 13 '25

Public datasets for analysis

1 Upvotes

Been trying to connect to external data sets such as Iris and Tips, intending to play with Python in Excel, but do not want to manually import. Hours of googling wasted. Anyone have success with this?


r/ExcelPowerQuery • • May 12 '25

I don't want to update the data , I just want to format the data

1 Upvotes

Hi ,

I've been taking a look at PQ , as someone who just started learning it over the weekend. I have a question :

If I wanted to automate the formating of a workbook daily , and I don't need to update the data as each workbook generated data is different from day to day. Can PQ handle that ?

I mean essentially I just want to format the data with the recorded steps everyday. I do not want to update the data.

Thanks.


r/ExcelPowerQuery • • May 02 '25

Combine/Append/Join question

1 Upvotes

I need to run a report based on the performance of 5 to 6 units of people (@70 records each) on 2 different tasks compared against a roster of requirements. So - I need to combine rosters of data on each task, append those, and then compare them against a requirement roster. All rosters have identical demographic info. Would this entail multiple queries from multiple folders (say - a folder per task housed in an overall folder with the requirement roster) or can it be done in 1 query? I'm new to Power Query - I've done a few simple ones with success, have a good grasp on the data transformations needed (even did a large nested conditional filter column) but this one is boggling my mind! I have joined, and appended, but never with this many files - multiple joins and appends needed.

Help?


r/ExcelPowerQuery • • Apr 09 '25

Comparing values between two sheets for changes

1 Upvotes

Hello you fabulous people, I've hit a bit of a mental wall and I was hoping to see if someone had some ideas that might help.

I have multiple sheets that are a week apart and I am trying to think of a way to highlight if a particular record/row has any changes between the most recent extract and the previous.

Here's a scrappy view of where I'm trying to get to:

The intent is to pull a list of buildings where the threshold has changed or at least be able to flag/filter it.

Any help would be greatly appreciated!


r/ExcelPowerQuery • • Apr 09 '25

Adding link to email

1 Upvotes

Using an Excel Power Query to keep track of my “to-do” fold in Microsoft. Cant seem to find a way to add a link to the email in excel.

Ideally i can click on the hyperlink in my excel and it would open up the email for that row.

Anyone know how i can do this? Or if possible?


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 31 '25

Refresh Data issue - only I can refresh, other team member gets error message

1 Upvotes

Hi all, I wonder if anyone can help with this issue? I created a Power Query to pull through data from 2 spreadsheets and combine the data to use in an excel dashboard - all works fine, except it only lets me refresh the data, not my other team member. The source files are from a SharePoint folder we are both owners of, but it seems to need me signed in to my 365 account to connect - how can I share the permissions so that my team member can also do the refresh?


r/ExcelPowerQuery • • Mar 25 '25

Exclude oldest program if more than 1

1 Upvotes

Very new to PowerQuery. This should be an easy one but I just can't figure it out. I need to exclude any rows of data for people that have more than one Day Program. I need to keep the most recently enrolled day program as well as any residential programs they are in. It would be easy if I only had the Day programs but the Residential are listed as well so not sure how to group or filter out only the oldest Day Program. In the example below...I would want it to Exclude Woodstock's Activities A because it is the oldest Enrollment Date. Any suggestions is greatly appreciated!!!

Initial Data
NameStatusEnrollment DateCategoryProgram
SnoopyActive1/1/2024ResidentialHouse A
WoodstockActive3/1/2024ResidentialHouse B
SnoopyActive1/1/2024DayActivities A
WoodstockActive3/1/2024DayActivities A
WoodstockActive6/1/2024DayActivities B
Desired Data
NameStatusEnrollment DateCategoryProgram
SnoopyActive1/1/2024ResidentialHouse A
WoodstockActive3/1/2024ResidentialHouse B
SnoopyActive1/1/2024DayActivities A
WoodstockActive6/1/2024DayActivities B

r/ExcelPowerQuery • • Mar 11 '25

Quickbooks connector

1 Upvotes

I'm trying to use the Quickbooks connector function. It works in power query through Power BI, but in excel the function "= QuickBooks.Tables()" doesn't work.

Is there a workaround for this?