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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.