AI vs Automation for Manufacturers | June 16

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

Microsoft’s New Expense Agent Simplifies Business Central Expense Reports

Clayton Jones

|

May 28, 2026
Most expense management improvements over the years have been incremental. Better OCR. Faster receipt capture. A mobile app instead of a desktop form. The underlying workflow stayed the same: employee…

When Does Dynamics 365 Business Central Need Power BI?

Clayton Jones

|

May 20, 2026
Thanks to Dynamics 365 Business Central, your processes have been streamlined, your finances smartly managed, and your sales cycle enhanced. Your business has been running so smoothly that you’ve finally…

From Power Automate to Microsoft Copilot: Where Workflow Automation Ends and AI Assistance Begins

Zoltan Orban

|

May 19, 2026
Webinar: AI or Automation? How to Know What Your Manufacturing Business Actually NeedsJune 16 @ 11:00 AM PT/2:00 PM ETRegister Now!Most operational problems are not as simple as “add AI.”…

Project Online Retirement: What Businesses Need to Do Before September 2026

Daniel Dix

|

May 7, 2026
For years, Project Online, Microsoft’s cloud-hosted project and portfolio management (PPM) solution, built on SharePoint Online has played a central role in enterprise environments, supporting everything from detailed scheduling to…

Microsoft Dynamics 365 Business Central Implementation Packages

Clayton Jones

|

April 29, 2026
If you’re like 99% of our clients, you’re trying to rein in the soaring costs of technology. It’s a delicate balancing act. On the one hand, you understand that you…

Doing More With the Team You Have: What BCS is Changing with AI

Jackie Gant

|

April 29, 2026
AI is everywhere right now, but what feels different is the pace. For the first time in a long time, small and mid-sized businesses are adopting new technology just as quickly…