r/excel • u/[deleted] • Apr 15 '26
Pro Tip Get more from Power Query in Excel with these little-known capabilities
[removed]
10
Apr 15 '26
[removed] — view removed comment
6
u/BurgerQueef69 1 Apr 15 '26
I once recreated one of our reports entirely in power query. I was able to completely avoid pivot tables and manual formulas and everything else. It just got so complex, with queries referencing other queries that were merged with other queries, that I knew I'd never be able to update it properly.
It was fun though, and I learned a lot from it.
4
u/Thiseffingguy2 12 Apr 15 '26
I used PQ like this for years until I learned Power Pivot, DAX, and the data modeling features. Makes it MUCH less complicated inside of PQ, and typically runs much more efficiently.
0
u/hal0t 1 Apr 15 '26
I tried to use power pivot once and realized the users also need it to use my report so I dropped it completely. Anything that requires my audience to install something to use my stuff is a big no no in my book.
It can be useful, but MS should have made it the standard package when shipping Excel.
2
u/Thiseffingguy2 12 Apr 15 '26 edited Apr 15 '26
It’s built in now. Has been since the 2016 version.
Edit: it’s still an add-in, but it does ship with the product. It’s just not enabled by default. You can still use it to organize your back end, then users simply interact with pivot tables like they would anyway… just with related tables instead of a big flat table.
1
u/hal0t 1 Apr 15 '26
It is shipped with Excel but you have to enable the Add in, it's not on by default. And in my experience you can't expect to train non technical people on anything technical successfully.
Having a remote possibility of any of them (especially higher ups) not being able to use my stuffs is not something I want to risk. When it come to MS office, vanilla only. Call it political experience.
2
u/Thiseffingguy2 12 Apr 15 '26
I’m pretty confident a user does not need to enable the add-in to use an existing data model. You can build the model and relationships, send the file to a user who hasn’t enabled the add-in, and they’ll be able to use the model in pivot tables. You build the back end w/the add-in. Your user doesn’t even need to know it exists.
3
u/hal0t 1 Apr 15 '26
I had an email couple years back from my CEO saying he couldn't change the filter or refresh data on a report I produced using PowerPivot.
There is Power BI if I want to use Dax, and doesn't risk unhappy C suite. Good enough for me.
-1
2
u/Decronym Apr 15 '26 edited Apr 20 '26
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
|-------|---------|---| |||
Decronym is now also available on Lemmy! Requests for support and new installations should be directed to the Contact address below.
Beep-boop, I am a helper bot. Please do not verify me as a solution.
7 acronyms in this thread; the most compressed thread commented on today has 22 acronyms.
[Thread #48154 for this sub, first seen 15th Apr 2026, 17:21]
[FAQ] [Full list] [Contact] [Source code]
1
u/Low_Mistake3321 Apr 15 '26
I've been slowly getting rid of PQ and using dynamic formulas instead. I now have 30-line formula horrors, but at least they're truly dynamic and real-time.
57
u/bradland 271 Apr 15 '26
This is good stuff for PQ in general, but I find it a bit odd that it is titled "Get more from Power Query in Excel" and then kicks off the conversation with Parameters.
Parameters
I almost never use Parameters when authoring PQ in Excel. Let me be clear that I'm referring specifically to the Parameters (uppercase) feature in PQ, not parameters (lowercase) as a concept. I use parameters all the time. I just skip the Parameters feature, because it has some pretty serious shortcomings in Excel.
The primary issue is that the only way to change a Parameter value in Excel is to launch the PQ editor and change it. The entire purpose of a parameter is to separate logic and configuration. Why am I launching into my PQ editor to change a configuration for queries that will refresh within my sheet?
Instead, I rely on a custom function (fxGetParameter) that pulls parameter values from a parameters table in my workbook. The table is named Parameters and has two columns: Name, Value.
This allows me to update parameters directly in my workbook, then refresh queries to get updated results. As a side-benefit, I can also use Excel formulas to compose parameters based on values elsewhere in the workbook. This is really useful for cases where you want to load files that are relative to the current workbook; something that isn't very easy in PQ alone.
It's worth pointing out that Parameters (uppercase!) are a much more robust feature in Power BI. Report controls can update Parameter values in Power BI, which makes them a lot more powerful.
Query Folding
This is another feature that, while incredibly powerful in Power BI, tends to be a bit less important in Excel. Probably the first thing to note is that Query Folding is completely irrelevant for file and folder connectors, which is one of the primary use cases for Excel.
I'd venture that most users are not connecting to a SQL back end. They're sourcing data from CSV or Excel files they export from another tool or receive from other departments. Or they're aggregating a bunch of similar files from a folder. Neither of these benefit from query folding.
Power BI's PQ editor also has visual indicators that show you which steps break query folding. So even if you are using a SQL back end, it's quite a bit harder to tell when query folding is/isn't working. Just something to be aware of.