top of page
Power BI | Excel | Python | SQL
Search
How to Insert Blank Rows After Every Group in Excel and Power Query
Here is how to insert blank rows after each group, sample data: OrderID OrderDate Product Category Quantity NetPrice 1001 2025-01-01 Laptop Electronics 1 60000 1002 2025-01-02 Smartphone Electronics 2 42000 1003 2025-01-03 Headphones Accessories 3 4200 1004 2025-01-04 Laptop Electronics 1 65000 1005 2025-01-05 Smartphone Electronics 1 21000 1012 2025-01-12 Headphones Accessories 4 5500 With Excel's Dynamic Array Functions: =LET( Table, Sales, u, UNIQUE(Sales[Product]), n, 1,

Antriksh Sharma
Apr 171 min read


CROSS JOIN 2 or more columns in Power Query
In this blog let's take a look at how to create cartesian product of 2 or more columns/lists in PowerQuery with UI, List Functions and Recursion when number of columns aren't fixed.

Antriksh Sharma
May 12, 20256 min read


New and Returning Customers in Excel
In this blog let's take a look at how to compute New and Returning Customers with Excel's Dynamic Array Functions and Power Query.

Antriksh Sharma
Apr 28, 20252 min read


Split delimeted text to multiple rows in Power Query
In this blog let's take a look at how to split multiple columns with concatenated strings into rows in PowerQuery, we will write M code...

Antriksh Sharma
Apr 5, 20253 min read


Convert Hour Minute Seconds text to Minutes in Power Query
In this post let's take a look at how to convert a text string such as 2h15m8s to 135.13 minutes This is the table that we are working...

Antriksh Sharma
Jun 12, 20232 min read


445, 454, or 544 Week table in Power BI and Excel
I was looking for a good week based date table on Internet and found only 1-2 but I didn't find columns that I needed, so my search ended...

Antriksh Sharma
Feb 16, 20231 min read


Create a Date table in Power Query with M code
Having a complete date table in your SSAS model is extremely important, a complete Date table helps in ensuring that the time...

Antriksh Sharma
Oct 6, 20212 min read


Dynamically Remove Null Columns in Power Query with M code
I was recently working with a dataset and found that there were a lot of columns that were completely null, now going 1 by 1 through each...

Antriksh Sharma
Jul 1, 20212 min read


Dynamically change column names in Power Query using predefined values
In Power Query if you want to change names of columns you can easily do so by going through each column one by one and then renaming...

Antriksh Sharma
Jun 17, 20211 min read


Clean a string using M in Power Query
In this blog I am going to show you how you can remove unwanted characters all at once from an improper text string like the following...

Antriksh Sharma
May 3, 20211 min read
bottom of page