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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous_KH
Frequent Visitor

Using DAX How to Create a new table from existing tables

Hello Power BI community,

 

A very simple question on creating a new table in Power BI.

Please find below as a data

 

Table 1

| CANDY | OFFICE |
|--------|------------|
| Nomi | Challakere |
| Sinnu | Durga |
| Toli | Shimoga |
| Naky | Loli |
| Toli | Burgi |

 

Table 2

 

| OFFICE | PRODUCER ID |
|------------|-------------|
| Challakere | 1 |
| Durga | 2 |
| Shimoga | 3 |
| Loli | 4 |
| Burgi | 5 |

 

So i want New table with Column (candy) from table 1 and (Producer id ) from table 2

 

 

1 ACCEPTED SOLUTION

Try:

Table 3 =
SELECTCOLUMNS (
    'Table 1',
    "Candy", 'Table 1'[CANDY],
    "Producer", LOOKUPVALUE ( 'Table 2'[PRODUCER ID], 'Table 2'[OFFICE], 'Table 1'[OFFICE] )
)

result.jpg

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

3 REPLIES 3
sudhav
Helper V
Helper V

you can use merge queries as nwe and select required colmns in PQE. otherwise use joins in DAX

Can You Please Write Down DAX Function here

Try:

Table 3 =
SELECTCOLUMNS (
    'Table 1',
    "Candy", 'Table 1'[CANDY],
    "Producer", LOOKUPVALUE ( 'Table 2'[PRODUCER ID], 'Table 2'[OFFICE], 'Table 1'[OFFICE] )
)

result.jpg

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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