cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
steph_io Regular Visitor
Regular Visitor

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.

 

productline.pngProduct Line search criteria and value to returnsessions.pngsession 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

Accepted Solutions
Community Support Team
Community Support Team

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

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 Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
1 REPLY 1
Community Support Team
Community Support Team

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

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 Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |