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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
baironaguillera
Regular Visitor

Create table getting data from table hosted in another query

Hi all,

 

I need to create a table with 3 columns getting data from another tables that are in another queries.

 

I would like to use advanced editor to create this table.

 

Example:

Column1(Text)Column2(Number) Column3(Number)
TestGet data from a measure COUNT from ('Query1'[Table1])get data from a row from (Query2'[Table2])

 

 

Please, help me!!!

1 ACCEPTED SOLUTION

@baironaguillera

 

Hi, Please follow the Image:

 

Groupby.gif

 

If you need a New Merge Table Select Merge Queries as New 




Lima - Peru

View solution in original post

7 REPLIES 7
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @baironaguillera,

In Power Query Edit window, you want to create a new table including the 3 columns, right? If it is, we are unable to achieve it, we use Query Edit to edit the resource table, you can add costomer, filter resource table, append or merge tables, but can not create a whole new table.

For your requirment, you can filter a resouce table to only have Column1, in the table add two coustomer tables(deperately from 'Query1'[Table1] or Query2'[Table2]).

 

If you also create a new table by click "New table" under Modeling on PowerBI Desktop Home page.

If this is not what you want, please share your sample data for further analysis.

Best Regards,
Angelia

Hi Angelia,

 

Follow the sample about the tables:

 

Table 1:

Product NameContracted
Product1100
Product2200
Product3300
Product4400
Product5500

 

Table 2:

UserEmailProduct NameComputerLast Logon
User1User1@email.comProduct1Computer1User1
User2User2@email.comProduct3Computer2User2
User3User3@email.comProduct5Computer3User3
User4User4@email.comProduct2Computer4User4
User5User5@email.comProduct4Computer5User5
User6User6@email.comProduct2Computer6User6
User7User7@email.comProduct4Computer7User7
User8User8@email.comProduct1Computer8User8
User9User9@email.comProduct5Computer9User9
User10User10@email.comProduct5Computer10User10
User11User11@email.comProduct1Computer11User11
User12User12@email.comProduct5Computer12User12
User13User13@email.comProduct2Computer13User13
User14User14@email.comProduct5Computer14User14
User15User15@email.comProduct4Computer15User15
User16User16@email.comProduct1Computer16User16
User17User17@email.comProduct3Computer17User17
User18User18@email.comProduct2Computer18User18
User19User19@email.comProduct4Computer19User19
User20User20@email.comProduct1Computer20User20

 

Table that I need:

Product NameContractedIn Use
Product11005
Product22004
Product33002
Product44004
Product55005

 

I need do drill down in the last column from in this last table.

 

Tks, 

dkay84_PowerBI
Microsoft Employee
Microsoft Employee

Is there a relationship between these different tables?

Hi,

 

I have the column Product Name that I can use to create the relationship. 

 

Follow the sample about the tables:

 

Table 1:

Product NameContracted
Product1100
Product2200
Product3300
Product4400
Product5500

 

Table 2:

UserEmailProduct NameComputerLast Logon
User1User1@email.comProduct1Computer1User1
User2User2@email.comProduct3Computer2User2
User3User3@email.comProduct5Computer3User3
User4User4@email.comProduct2Computer4User4
User5User5@email.comProduct4Computer5User5
User6User6@email.comProduct2Computer6User6
User7User7@email.comProduct4Computer7User7
User8User8@email.comProduct1Computer8User8
User9User9@email.comProduct5Computer9User9
User10User10@email.comProduct5Computer10User10
User11User11@email.comProduct1Computer11User11
User12User12@email.comProduct5Computer12User12
User13User13@email.comProduct2Computer13User13
User14User14@email.comProduct5Computer14User14
User15User15@email.comProduct4Computer15User15
User16User16@email.comProduct1Computer16User16
User17User17@email.comProduct3Computer17User17
User18User18@email.comProduct2Computer18User18
User19User19@email.comProduct4Computer19User19
User20User20@email.comProduct1Computer20User20

 

Table that I need:

Product NameContractedIn Use
Product11005
Product22004
Product33002
Product44004
Product55005

 

I need do drill down in the last column from in this last table.

 

Tks, 

@baironaguillera

 

Hi, Please follow the Image:

 

Groupby.gif

 

If you need a New Merge Table Select Merge Queries as New 




Lima - Peru

Hi @Vvelarde

 

In this example you merger 2 tables.

Is it possible merge another one using the same column name?

 

Then we will use 3 tables.

 

Tks!!

Hi @baironaguillera,

As I tested, we are unable to merge three table at one time. You can merge the two tables to one new table, then merge new table to third table.

Best Regards,
Angelia

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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