top of page

KNOWLEDGE HUB
Practical explanations for better data work
Articles on Excel, Power BI, Power Query, dashboards, and automation—kept focused enough to use in your next project.


How to Build a Proper Date Table in Power BI
A practical step-by-step guide to building a clean Power BI date table, writing better time-intelligence measures, and avoiding the most common calendar mistakes.

MirVel
Apr 216 min read


Top 5 Reusable M Code Functions for Power BI/Excel (Power Query)
Power BI’s Power Query (M language) allows creating custom functions and reusable query steps to simplify common tasks. Below are five versatile M-code solutions – a mix of data transformation helpers and analysis utilities – that you can copy into your Power BI queries with minimal adjustments. Each function includes the full M code, an explanation of its purpose, and an example use case in real-world projects. Check out some of our FREE templates and materials. PRACTICE MAT

MirVel
Aug 31, 20254 min read


Power Query: Rename Columns from a Mapping Table (Inline step)
Check out some of our FREE templates and materials. PRACTICE MATERIAL BELOW!👇 Function: Would you like to rename multiple columns in a single operation? This custom step allows you to rename as many columns as needed. You need one mapping table (let's call it "RenameTbl") with columns: OldName and NewName , and then reference it simply with a Custom Column step. Yellow markings indicate the difference between Old and New Columns after the custom step. Custom Column in app

MirVel
Apr 19, 20251 min read


Power Query: Extract Numbers from a Text String
Check out some of our FREE templates and materials. PRACTICE MATERIAL BELOW!👇 Function: Extracts only the numeric values from a given text. Simply add custom function in Power Query and define your column. Add a new Query from Sources Usage: = ExtractNumbers("Order ID: 123ABC456") → Returns: "123456" Power Query code for use and reuse: let ExtractNumbers = (inputText as nullable text) as nullable text => let NumbersOnly = if inputText = null the

MirVel
Mar 13, 20251 min read


Power Query: Remove Special Characters from Text
Check out some of our FREE templates and materials. PRACTICE MATERIAL BELOW!👇 Function: This function, RemoveSpecialChars, cleans a text string by removing special characters, retaining only letters and numbers. Add fx to the blank query (Advanced Editor) Usage Example: Using = RemoveSpecialChars("H3ll0! W@rld#") will return "H3ll0 Wrld". The function removes specified special characters from the input text, ensuring a clean output. Power Query code for use and reuse: Rem

MirVel
Mar 13, 20251 min read


Power Query: Reusable Calendar function
This Power Query function dynamically generates a calendar table based on a given start date, end date, and fiscal year start month . It is designed to support time-based analysis in Power BI by including key date attributes, fiscal calculations, and various helper columns. Check out some of our FREE templates and materials. PRACTICE MATERIAL BELOW!👇 Power Query Calendar Function diagram illustrating parameter inputs for start date, end date, and fiscal start month, with

MirVel
Mar 3, 20252 min read
bottom of page
