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.3 Data Shaping and Filtering

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

Data Shaping and Filtering

Data shaping involves restructuring your data so it's in the right format for analysis. Filtering helps you focus on relevant data by excluding unnecessary rows.

Data Filtering

Column Filters:

  1. Click the dropdown arrow on a column header
  2. Uncheck values you want to exclude
  3. Use search box for large lists
  4. Applied as a step in "Applied Steps"

Row Filters:HomeRemove Rows provides several options:

Filter OptionDescription
Remove Top RowsRemove first N rows (e.g., skip metadata rows)
Remove Bottom RowsRemove last N rows
Remove Alternate RowsRemove every Nth row
Remove Blank RowsRemove rows where all columns are blank
Remove ErrorsRemove rows with error values
Keep Top RowsKeep only the first N rows
Keep Bottom RowsKeep only the last N rows
Keep Range of RowsKeep rows from position X to Y

Transforming Columns & Rows

Column Transformations:Rename Column: Double-click column header or right-click → Rename • Reorder Columns: Drag and drop column headers • Remove Columns: Right-click → Remove (or Remove Other Columns to keep only selected) • Unpivot Columns: Convert column headers to row values (wide → long format) • Pivot Columns: Convert unique row values to column headers (long → wide format)

Row Transformations:Transpose: Swap rows and columns • Promote Headers: Use the first row as column headers • Demote Headers: Move column headers to the first data row • Sort Rows: Click column header → Sort Ascending/Descending • Group By: Aggregate rows based on column values

Unpivot vs Pivot (Key Concept)

Unpivot (Wide → Long): • Converts multiple columns into two columns: Attribute and Value • Useful when months or categories are spread across columns

Before (Wide)
ProductJanFeb
A100150
After Unpivot (Long)
ProductMonthSales
AJan100
AFeb150

Pivot (Long → Wide): • Opposite of unpivot — converts row values into columns • Useful for creating summary tables

Group By

Aggregate data by grouping rows with the same value.

Steps:

  1. Select column to group by
  2. TransformGroup By
  3. Choose Basic or Advanced
  4. Define aggregation: Sum, Count, Average, Min, Max
  5. Click OK