Power Query Problems

How to Check Power Query M Function Compatibility in Excel

Nimra MalikNimra Malik Nov 13, 2026 869 views

Question details

The user needs to list the Power Query M functions available in the Excel version where a query is running.

Product
Microsoft Excel (Power Query)
Device & OS
not provided
Scenario
A user wants to verify whether an M function can be used in their current Excel build before writing or troubleshooting a Power Query query.
Observed behavior
The expected result is a sorted list of functions available in the current Power Query environment, not a complete version history.
Before you start

Open the workbook in the Excel version you want to check and make sure the Power Query Editor is available from the Data tab. An empty query is sufficient to run the #shared inspection.

Solution 1Recommended

List Available Power Query M Functions with the #shared Library

Use this method when you need a current-environment function inventory or need to check whether a specific M function is available before using it.

The #shared record contains built-in and environment-specific functions. Removing workbook query fields and selecting only function values returns a clean list from the currently running Power Query engine.

1
Open the Power Query Editor

In Excel, go to the Data tab and click Get Data > Launch Power Query Editor. If you already have a query open, open the Power Query Editor directly.

2
Create a new blank query

In the Power Query Editor, click New Source > Blank Query or right-click in the Queries pane and choose New Query > Blank Query.

3
Open the Advanced Editor

With the blank query selected, click Home > Advanced Editor to open the M code window.

4
Paste the #shared listing code

Replace the existing code with: let Source=Record.ToTable(Record.RemoveFields(#shared,Record.FieldNames(#sections[Section1]))), Selected=Table.SelectRows(Source, each [Value] is function), Names=Table.SelectColumns(Selected,{"Name"}), Sorted=Table.Sort(Names,{{"Name",Order.Ascending}}) in Sorted. Then click Done.

5
Review the function list

The query returns a table sorted by Name. Click Close & Load to load the list into a worksheet, or inspect it in the data preview.

List Available Power Query M Functions with the #shared Library
Current environment only: This list shows functions available in the engine where the query is executed. It is not a complete version history and does not guarantee compatibility across different Excel builds.
Free Microsoft Office alternative

Use WPS Office to Open and Edit Excel Workbooks Free

WPS Office is a free, lightweight Microsoft Office alternative that opens Excel files with high format compatibility, a familiar ribbon UI, and smooth migration for everyday spreadsheet tasks. While Power Query M function compatibility checks run in Microsoft Excel's Power Query environment, you can use WPS Office to open, review, edit, and share the workbook results without a subscription.

Open and edit .xlsx workbooks with high format compatibility.Review exported Power Query function lists in a familiar spreadsheet layout.Familiar ribbon interface makes the switch from Microsoft Excel easy.Free to download and use for personal and business spreadsheet tasks.Lightweight installation with fast startup for daily office work.
microsoft office alternative - wps office

Frequently Asked Questions

Does #shared show every M function from all Excel versions?

No. The #shared query lists functions available in the current Power Query engine where the query is executed. It does not provide a complete version history or include functions from other Excel builds.

Where do I paste the M code to get the function list?

Open the Power Query Editor in Excel, create a blank query, then click Home > Advanced Editor. Paste the #shared M code into the Advanced Editor and click Done.

Can I check a specific M function without generating the full list?

Yes. Create a blank query and use a short test such as let exists = Record.HasFields(#shared, "Text.Combine") in exists. Replace Text.Combine with the function name you want to check.

Why do I see fewer functions than someone on another Excel build?

Function availability depends on the Power Query engine version, Excel update channel, installed connectors, and environment. The same query can return different lists on different builds.

Does WPS Office include the same Power Query M environment?

WPS Office is a free, lightweight spreadsheet alternative for opening and editing Excel workbooks. For native Power Query M environment checks, use Microsoft Excel because the M engine version determines which functions are listed.