Power Query M Language Guide
Power Query M Language Guide
🔹 Basic Structure
let
StepName = SomeFunction(Source),
NextStep = AnotherFunction(StepName)
in
NextStep
🔹 Common Functions
🔹 Data Types in M
Steps:
2. Give this table a name, e.g., SalesData (select table → right-click → Table Name in top-left).
3. Go to Excel → Data tab → Get Data → From Other Sources → Blank Query.
4. In the Power Query Editor, open Advanced Editor and paste this:
let
Source = Excel.CurrentWorkbook(){[Name="SalesData"]}[Content],
FilteredRows = Table.SelectRows(Source, each [Amount] >= 1000),
RenamedColumns = Table.RenameColumns(FilteredRows, {{"Amount", "Sales Value"}})
in
RenamedColumns
5. Click Close & Load to load the result back into Excel.