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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
fab14
New Member

Search string in another table and place that value

Hi all,
I've been searching this for hours and although I tried lots of solutions and, they either don't work for me or aren't exactly what I'm looking for.

I have a list of elements with names like this

 

Table "log"

Script Name
XXX_XX_ExportToDwgReg_0.2.1
XXX_XX_ExportToDwgReg_0.2.1
XXX_XX_FindCAD_0.2a
XXX_XX_AutomaticDoorMarks_0.3.1
XXX_XX_RevisionClouds_0.6.2
XXX_XX_FindCAD_0.2a
XXX_XX_AutomaticDoorMarks_0.3.1


With more columns with a lot of info.

 

I have another table like this

 

Table "ScriptControl"

Script NameTime
FindCAD5
ExportToDwgReg30
RevisionClouds25
AutomaticDoorMarks15

 

What I would need is something like this

Script NameShort NameTime
XXX_XX_ExportToDwgReg_0.2.1ExportToDwgReg30
XXX_XX_ExportToDwgReg_0.2.1ExportToDwgReg30
XXX_XX_FindCAD_0.2aFindCAD5
XXX_XX_AutomaticDoorMarks_0.3.1AutomaticDoorMarks15
XXX_RevisionClouds_0.6.2RevisionClouds25
XXX_XX_FindCAD_0.2aFindCAD5
XXX_XX_AutomaticDoorMarks_0.3.1AutomaticDoorMarks15

 

So, I would need to search the string in ScriptControl[Script Name] comparing it to the values in log[Script Name] and place the value in a column in the table log, and after that, place the respective value "Time" in another column.

By the way, splitting the strings in log[Script Name] by "_" wouldn't work as sometimes the names may differ.

 

Can someone help me, please? Thanks! 🙂

Many thanks in advance! Cheers!

2 REPLIES 2
pankaj_lp
Helper I
Helper I

try this custom column and then split by number of charcters if XXXX have fixed number of characters :

custom column= Text.Select([Script Name], {"A".."Z", "a".."z"})

Hi! Thanks for your reply, but as I said, I could not use any splitting word solution as the names in the first column may vary. I would need to search the substring from ScriptControl[Script Name] in the column log[Script Name]

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors