Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
hengsworld
Frequent Visitor

extract data from two tables - DAX Formula

I am looking for a DAX query that will simplify my current process... 

 

Currently, I have a table call Active Directory in Power Bi that contains the username, email, and managers etc. And I am importing a table 1 (Manager or higher)  with a list of names and connecting it to Active Directory table. All I want is to get a list of names in active directory that report up to Table 1, so manager and table 1 names are the same and username will list names that report up . Then, I manually export that data and reimported to make visualization. 

 

 

How can I utilizes DAX to automate this process and it would also be GREAT if I can go a level deeper meaning that Table 1 will have managers reporting to it and more people reporting to that managers. All in one table. 

 

Is this possible? 

1 ACCEPTED SOLUTION
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi there,

 

You can do this in DAX, but it might be better to do this in the Query Editor.

 

If you have a common column then have a look at the Merge/Append functions inside the Query Editor.  Using these, you can create a 3rd table that is the combinations of the first two.

 

There might be some useful tips for you in this blog

 

http://radacad.com/append-vs-merge-in-power-bi-and-power-query


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

1 REPLY 1
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi there,

 

You can do this in DAX, but it might be better to do this in the Query Editor.

 

If you have a common column then have a look at the Merge/Append functions inside the Query Editor.  Using these, you can create a 3rd table that is the combinations of the first two.

 

There might be some useful tips for you in this blog

 

http://radacad.com/append-vs-merge-in-power-bi-and-power-query


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.