Microsoft Copilot $21 now $18/user/month + 1 month free

March 31, 2023

Using DAX to Create Custom Columns in Microsoft Power BI

Microsoft Power BI continues to provide our clients with up to date information to continue making great business decisions. An important aspect of Power BI is to optimize it to make sure the users are seeing the most relevant information. One way to make sure the visualizations and tables are reflecting the data concisely is to use DAX to create the necessary columns.

Microsoft Power BI displays Income and Cost of Goods Sold amounts, based on Account Categories and Dimension Value Codes found within Dynamics 365 Business Central. The visualizations below of a Power BI Table are referred to as Before and After in this blog.

As outlined in previously published blogs, the Business Central tables containing this data are Chart of Accounts, Dimension Set Entries, and General Ledger Entries (GL Entries).

Before:

After:

Although the data displayed within both objects is accurate, the After table offers the better presentation.

Within After, we have Income and Cost of Goods Sold amounts residing in separate columns and we have a column for Profit Margin.  We’re able to analyze amounts for Dimension Value Codes based on Account Category, without having to display the Account Categories!

We are able to present the data in a more concise and accurate table by utilizing DAX.

What is DAX?

DAX stands for “Data Analysis Expressions”.  According to Microsoft Learn, DAX is a “collection of functions, operators, and constants that can be used in a formula, or expression, to calculate and return one or more values.” Microsoft Learn, further, states that DAX creates new information from data already within your Power BI model. Using DAX allows you to create new columns within Power BI.

DAX Formulas

Again, the formulas or measures created using DAX are Income, Cost of Goods Sold, and Profit Margin:

  • Income = (sumx(FILTER(‘G_LEntries’, Related(‘Chart_of_Accounts'[Account_Category])=“Income”), ‘G_LEntries'[Amount]))*-1
  • Cost of Goods Sold = sumx(FILTER(‘G_LEntries’, Related(‘Chart_of_Accounts'[Account_Category])=“Cost of Goods Sold”), ‘G_LEntries'[Amount])
  • Profit Margin = [Income]-[Cost of Goods Sold]

Creating a DAX formula begins, by clicking the “New Measure” button:

After typing the name of the measure, such as “Income” or “Cost of Goods Sold”, you enter DAX functions as follows:

  • Sumx: returns the sum of an expression evaluated for each row in a table
  • FILTER: extracts data from a table based on specified criteria such as “Account Category”
  • RELATED: returns a related value from another table (“Income” or “Cost of Goods Sold”)

If you have any questions about Power BI data visualizaations, please do not hesitate to reach out to us at Support@BondConsultingServices.com or you can click here to schedule a consultation with one of our experts.

Other articles

What Copilot “Cowork” Means for Business Users

Zoltan Orban

|

March 26, 2026
Microsoft recently introduced Copilot Cowork, and I wanted to take a closer look at what it represents in practical terms, especially for business users working across Microsoft 365 and related…

Why CRM Data Quality Matters More Than Data Volume

Marisa Mini

|

March 24, 2026
A database of 100,000 messy, outdated records is far less valuable than 5,000 that are clean and accurate. Companies often obsess over data volume. But when more data is prioritized over…

From Reactive to Predictive: AI in Business Central Distribution

Zoltan Orban

|

March 19, 2026
Most distribution teams don’t lack reporting. If anything, they often have too much of it. Dashboards, planning worksheets, inventory reports, and KPIs are readily available inside Dynamics 365 Business Central. Yet…

AI Agents in Business Central: How the Payables Agent Works

Jennifer Ryan

|

March 17, 2026
If you're curious how AI agents in Microsoft Dynamics 365 Business Central actually work, we're hosting a live walkthrough of the Payables Agent on March 26. See live how the agent…

Migrating 1.3 Million CRM Records in Dynamics 365: Why We Used a Custom Console App

Marisa Mini

|

March 5, 2026
A government client needed to restructure 1.3 million contact records in Microsoft Dynamics 365 CRM. At that scale, traditional UI tools and flows can throttle, fail silently, or leave a…

AI Agents in Manufacturing ERP: D365 Business Central Guide

Seetharaman Andiappan Rajaram

|

March 4, 2026
AI agents are now live inside Microsoft Dynamics 365 Business Central. For manufacturers evaluating AI in ERP systems, the practical question isn’t what an agent is it’s how AI agents…