Sales tax works...until it doesn't. Join our May 5 webinar.

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 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…

Why AI Sometimes Feels Off (Even When You Have the Data)

Zoltan Orban

|

April 23, 2026
Webinar: Doing More With the Team You Have | What BCS is Changing About AIApril 28 @ 12:00 PM PT/3:00 PM ETRegister Now!Most small and mid-sized businesses aren't behind on…

What 200% ROI from Business Central Really Looks Like

Jackie Gant

|

April 13, 2026
Where ROI actually shows up from finance efficiency to operational visibility Forrester says Business Central delivers 200% ROI. But what does that actually look like in practice? A recent Total Economic…

Do You Need Avalara for Business Central? A Practical Guide

Clayton Jones

|

April 10, 2026
Webinar: Sales Tax Works…Until It Doesn’t: Tax Complexity at Scale for Product CompaniesMay 5 @ 10:00 AM PT/1:00 PM ETRegister Now!Most companies focused on making, distributing, or selling products manage…

What Is Work IQ? How Microsoft Copilot Moves from Data to Context

Zoltan Orban

|

April 9, 2026
Work IQ is one of those terms that can sound more complex than it really is. Most AI tools today work by pulling from available data. They can read records, summarize…