Power BI – DAX Calculated Tables

Calculated Columns are virtual columns added to an existing table using Data Analysis Expressions (DAX) formulas. They enable you to:

  1. Perform calculations on existing data
  2. Create new data points for analysis
  3. Enhance data modeling and relationships

Key Features

  1. Defined using DAX formulas
  2. Added to existing tables
  3. Calculated dynamically with data refresh
  4. Can be used in visuals, filters, and measures

Use Cases

  1. Calculate profit margins
  2. Create custom categorizations (e.g., age groups)
  3. Extract date parts (e.g., year, month, day)
  4. Combine text columns
  5. Perform conditional logic

Create calculated tables easily in Power BI by clicking the New Table under the Table Tools. The calculated tables are created and displayed in Report ViewData View, or Model View using this Table Tools feature.

Input File: Create tables inside Power BI
Output Saved as: AMIT DAX Calculate Table.pbix

Let’s say we want to combine 3 tables, then we can achieve this using the calculate tables concept.

Let us first create the tables. We will create two tables displaying the students who got maximum marks in a subject. To create a table, open Power BI and click Enter data. We have created our first table here Coding Students. Click Load:

Create the first table for DAX in Power BI

Create the 2nd table also in a similar way and name it Management Students. Click Load:

Create the second table for DAX in Power BI

Now, we have two tables:

  • Coding Students
  • Management Students

Both the tables are now visible:

Two tables created in Power BI

To combine both tables, go to Table View and click Table Tools. After that, click the New table:

Combine both the tables in a new table with Power BI DAX

The above also opens the formula bar. Write the following DAX expression in the formula bar to combine both the table:

The new table with the result is named Total Students:

Write a DAX Expression to combine two tables

Press CTRL+S to save it. We named it AMIT DAX Calculate Table.pbix.


If you liked the tutorial, spread the word and share the link and our website Studyopedia with others.


For Videos, Join Our YouTube Channel: Join Now


Read More:

Power BI - What is DAX
Power BI - DAX Calculated Columns
Studyopedia Editorial Staff
contact@studyopedia.com

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading