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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply

lookup Value from another table without relationship

Hi All,

 

I wanted to know if there is any possibility of searching a keyword from 1st table and getting the lookup value from the second table.

1st Table
Name
Definition of climate 
 Climate Infrastructure Opportunities
Sustainability-Climate Risk Support
ARDIAN Adaptation Analysis

 

2nd Table  
KeywordTagRank
ClimateSustainability1
SustainabilitySustainability2

 

Wherever the 2nd table keyword matches with the 1st table. the values should be populated from the 2nd table(Tag Column)

1st table with Tag 
NameTag
Definition of climate Sustainability
 Climate Infrastructure OpportunitiesSustainability
Sustainability-Climate Risk SupportSustainability
ARDIAN Adaptation AnalysisOther

 

 

 

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

column
Screen Capture #419.png

column = COALESCE(
CALCULATE(MAX('Table_2'[Tag]),
    FILTER ( 'Table_2', CONTAINSSTRING ( 'Table_1'[Name], 'Table_2'[Keyword]) )),"Other")

 

View solution in original post

5 REPLIES 5
v-zhangti
Community Support
Community Support

Hi, @RanjanThammaiah 

 

You can try the following methods.

Column = 
IF (
    SEARCH ( "Climate", [Name],, 0 ) <> 0,
    LOOKUPVALUE ( Table2[Tag], Table2[Keyword], "Climate" ),
    "Other"
)

vzhangti_0-1678254684868.png

Is this the result you expect?

Best Regards,

Community Support Team _Charlotte

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

 

Ahmedx
Super User
Super User

column
Screen Capture #419.png

column = COALESCE(
CALCULATE(MAX('Table_2'[Tag]),
    FILTER ( 'Table_2', CONTAINSSTRING ( 'Table_1'[Name], 'Table_2'[Keyword]) )),"Other")

 

Ahmedx
Super User
Super User

Ahmedx
Super User
Super User

see attached, i solved your problem in power query
https://1drv.ms/u/s!AiUZ0Ws7G26RhhY5L7x0e_GvMC0F?e=Ays6kb

FreemanZ
Super User
Super User

hi @RanjanThammaiah 

try like:

Tag =
LOOKUPVALUE(
    Table2[Tag],
    Table2[Keyword],
    Table1[Name]
 )

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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