Newsletter
Join our blog
Join other Azure, Power Platform and SQL Server pros by subscribing to our blog.
Start with the FREE community plan and get your lifetime access to 20+ courses. Get Instant Access Now!
Need help? Talk to an expert: (904) 638-5743
Private Training
Customized training to master new skills and grow your business.
On-Demand Learning
Beginner to advanced classes taught by Microsoft MVPs and Authors.
Bootcamps
In-depth boot camps take you from a novice to mastery in less than a week.
Season Learning Pass
Get access to our very best training offerings for successful up-skilling.
Stream Pro Plus
Combine On-Demand Learning platform with face-to-face Virtual Mentoring.
Certification Training
Prepare and ace your next certification with CertXP.
Private Training
Cheat Sheets
Quick references for when you need a little guidance.
Nerd Guides
Summaries developed in conjunction with our Learn with the Nerds sessions.
Downloads
Digital goodies - code samples, student files, and other must have files.
Blog
Stay up-to-date on all things Power BI, Power Apps, Microsoft 365 and Azure.
Community Discord Server
Start here for technology questions to get answers from the community.
Career Guides
Breaking into the field? Let these guides help get you started with a plan.
Affiliate Program
Earn money by driving sales through the Pragmatic Works' Training Affiliate Program.
Reseller Partner
It's time to address your client's training needs.
Foundation
Learn how to get into IT with free training and mentorship.
Management Team
Discover the faces behind our success: Meet our dedicated team
Contact Us
How can we help? Connect with Our Team Today!
FAQs
Find all the information you’re looking for. We’re happy to help.
In this video, Mitchell Pearson demonstrates how to write more complex DAX (Data Analysis Expressions) in Power BI by connecting to another table, retrieving a distinct list of values, and combining them. This video offers a step-by-step walkthrough for creating a new column in Power BI that aggregates task descriptions from a related table and removes duplicates using DAX functions. The session covers two main approaches to solve this problem, providing valuable insights into working with DAX for intermediate and advanced Power BI users.
Mitchell begins by introducing a simplified version of a real-world problem from a customer. The customer had a table with order numbers and concatenated task descriptions, and they needed a way to display the distinct task descriptions without duplicates. Mitchell demonstrates how to achieve this by using DAX functions in Power BI.
To begin, Mitchell uses the RELATEDTABLE
function to retrieve related rows from the Order Details table and concatenate the task descriptions using CONCATENATEX
. While this retrieves the task descriptions, it doesn't yet solve the issue of duplicates.
Next, he introduces the DISTINCT
function to remove duplicate task descriptions. By using SELECTCOLUMNS
to select only the task description column, Mitchell applies the DISTINCT
function and successfully removes duplicate descriptions before concatenating them back together.
As an alternative, Mitchell demonstrates the use of the SUMMARIZE
function, which implicitly performs a distinct operation, simplifying the process. This method groups the task descriptions and removes duplicates without the need for an additional distinct step.
In this video, Mitchell provides multiple ways to solve the problem of retrieving and displaying distinct task descriptions in Power BI using DAX. Whether using DISTINCT
with SELECTCOLUMNS
or leveraging SUMMARIZE
, both methods demonstrate the flexibility of DAX for solving complex problems. Mitchell encourages viewers to practice and experiment with these techniques to improve their DAX skills.
Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on DAX, Power BI and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks.
ABOUT THE AUTHOR
Mitchell Pearson has been with Pragmatic Works for 10 years as a Data Platform Consultant and the Training Manager. Mitchell has authored books on SQL Server, Power BI and the Power Platform. Data Platform experience includes designing and implementing enterprise level Business Intelligence solutions with the Microsoft SQL Server stack (T-SQL, SSIS, SSAS, SSRS), the Power Platform and Microsoft Azure.
Free Trial
private training
Newsletter
Join other Azure, Power Platform and SQL Server pros by subscribing to our blog.
Leave a comment