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
macgeorge
Helper I
Helper I

Creating a table from 2 other tables

I am trying to create a 3rd table (table c) that will present all names has a "Full Name" column from table a, and will list all the names under "DISPLAY_NAME" from table b, and the LICENSE_NO column also from table b.

 

The license number should only be entered into table c if there is a match of the full name (from table a and b) if there is no match then a null value is entered into the License_No column in table c.

 

I have example tables below and I would be grateful for any help in this please.

 

I was using a crossjoin (below) but this did not work the way I wanted. 


Table = CROSSJOIN(DISTINCT('Table1'[Contact ID]),DISTINCT('Table2'[BC #])

 

table a

Full Name
Aaron
Ryan
Adam
Peter
John
Kevin
David
Adrian
Alex
Bryan
Allan
Sarah
Clare

 

table b

DISPLAY_NAMELICENCE_NO
AARON1301
ADAM1305
PETER1309
JOHN1313
DAVID1317
ADRIAN1321
ALEX1325
ALLAN1329
SARAH1333
CLARE1337

 

table c (example of how I would like it to look like)

Full NameLicense_No
Aaron1301
Ryan 
Peter1309
3 REPLIES 3
macgeorge
Helper I
Helper I

I am still struggling with this. I have tried the generate and although I followed your suggestion (and reviewed the youtube you advised), it didnt work for me. It was coming up with syntax errors on my table. I will keep trying.

macgeorge
Helper I
Helper I

thank you. i did check this video out, but is doesnt give me what i want, which is the following: 

 

table c

Full NameLicense_No
Aaron1301
Ryannull
Adam1305
Peter1309
John1313
Kevinnull
David1317
Adrian1321
Alex1325
Bryannull
Allan1329
Sarah1333
Clare1337
amitchandak
Super User
Super User

@macgeorge , Try with generate

 

generate('Table1'[Full Name], filter(Full Name, 'Table2'[DISPLAY_NAME] = upper('Table1'[Full Name])))

 

https://www.youtube.com/watch?v=QRWBfMujaXw

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.