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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
azizdoghmi
Helper I
Helper I

Problem with lookup

Hi, 

 

I have 2 tables :

TABLE PROJECT

Project ID - Project Name-Project description

1-AA-kkkkkk

2-BB-oooooo

3-CC-iiiiiiiii

 

TABLE EVENT

Event ID - Event name-Project ID

1-xxx-1

2-yyy-1

3-zzz-3

 

I need to have a new table with all the projects and related events (even if no event)

Project ID-Event ID- Project Name

1-1-xxx

1-2-yyy

2-

3-3-zzz

 

I have tried to link the table (relation one to many) bu twe cannot see the projects without event.

And LOOK up formula in DAX gives the message "A table of multiple values was supplied where a single value was expected"

 

thank you very much for your support

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @azizdoghmi 

You can link two tables by Project ID column (one to many) and set Project ID column to show items with no data.

1.png

Or you can build a new table by merge function in Power Query Editor.

Merge Project and Event Table by Project ID columns and join kind = left outer .

2.png

Result is as below.

3.png

You can download the pbix file from this link: Problem with lookup

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

3 REPLIES 3
v-rzhou-msft
Community Support
Community Support

Hi @azizdoghmi 

You can link two tables by Project ID column (one to many) and set Project ID column to show items with no data.

1.png

Or you can build a new table by merge function in Power Query Editor.

Merge Project and Event Table by Project ID columns and join kind = left outer .

2.png

Result is as below.

3.png

You can download the pbix file from this link: Problem with lookup

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

azizdoghmi
Helper I
Helper I

sorry I don't understand.

which formula in the measure?

how to join?

 

thks

amitchandak
Super User
Super User

@azizdoghmi , Simply Create a join on project id.

Create a measure, add +0 on that

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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