Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

2.1 Introduction to Power Query Editor

Lesson 11 of 62 in the free Power BI notes on Siksha Sarovar, written by Rohit Jangra.

Introduction to Power Query Editor

Power Query Editor is the data transformation engine inside Power BI Desktop. It allows you to clean, reshape, and prepare your data before it enters the data model.

What is Power Query?

• A data connection and transformation tool built into Power BI, Excel, and other Microsoft products • Uses the M language (Power Query Formula Language) behind the scenes • Provides a no-code / low-code visual interface for data transformations • All transformations are recorded as steps and can be replayed automatically on data refresh

Opening Power Query Editor

Methods to Open:

  1. HomeTransform Data (opens all loaded queries)
  2. While importing data → Click Transform Data instead of Load
  3. From the Data View → Right-click a table → Edit Query

Power Query Editor Interface

SectionDescription
Queries Pane (Left)Lists all queries/tables loaded into the editor
Preview Pane (Center)Shows a preview of the data with applied transformations
Applied Steps (Right)Lists all transformation steps in order; can be edited, deleted, or reordered
Ribbon (Top)Tabs for Home, Transform, Add Column, View with transformation tools
Formula BarDisplays the M code for the currently selected step

Key Concepts

Applied Steps: • Every action you perform is recorded as a step • Steps are applied sequentially (top to bottom) • You can click any step to see the data at that point • Steps can be renamed, deleted, moved, or edited

M Language: • The underlying language that Power Query generates • Each step produces an M expression • Advanced users can write custom M code in the formula bar or Advanced Editor

Example M Code:

let
    Source = Excel.Workbook(File.Contents("C:\Data\Sales.xlsx")),
    Sheet1 = Source{[Name="Sheet1"]}[Data],
    PromotedHeaders = Table.PromoteHeaders(Sheet1),
    FilteredRows = Table.SelectRows(PromotedHeaders, each [Amount] > 100)
in
    FilteredRows

Power Query vs DAX

FeaturePower QueryDAX
PurposeData preparation & transformationData analysis & calculations
When AppliedBefore data enters the modelAfter data is in the model
LanguageM languageDAX language
OperationsClean, merge, filter, reshape dataCreate measures, calculated columns
InterfacePower Query EditorData model / Report view