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
steph_io
Advocate II
Advocate II

use column values to search content in a column of another table

I have 2 tables (product line & sessions) for which there is no key to make a join. 

I want to use 1 table to store search criteria for each product line.

The session table contains a landing page column for which I need to search using this criteria for each product line.

Then return the product line if the criteria is found.

 

Product Line search criteria and value to returnProduct Line search criteria and value to returnsession landing column in which to seatchsession landing column in which to seatch

 

If the LookupValue 'crm' is found in the LandingPage column content, then return the Product line. 

 

Then once the ProductLine is available in the Session table, I can use it to join/filter the table by adding the ProductLine to my report page as a slicer. 

 

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

Hi @steph_io,

 

You can try to use below formula to show the existing product line.

 

Calculate column:

Product = 
var temp=FILTER(ADDCOLUMNS(CROSSJOIN(VALUES(sessions[Landing Page]),'product line'),"Exist",SEARCH([LookupValue],[Landing Page],,-1)>0),[Exist]=TRUE())
return
CONCATENATEX(FILTER(temp,[Landing Page]=EARLIER(sessions[Landing Page])),[ProductLine],",")

1.PNG

 

 

Notice: temp table.

2.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @steph_io,

 

You can try to use below formula to show the existing product line.

 

Calculate column:

Product = 
var temp=FILTER(ADDCOLUMNS(CROSSJOIN(VALUES(sessions[Landing Page]),'product line'),"Exist",SEARCH([LookupValue],[Landing Page],,-1)>0),[Exist]=TRUE())
return
CONCATENATEX(FILTER(temp,[Landing Page]=EARLIER(sessions[Landing Page])),[ProductLine],",")

1.PNG

 

 

Notice: temp table.

2.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.