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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
rsanyoto
Helper III
Helper III

Lookupvalue in same table based on two columns

Hi everyone,

 

I have one table that contains two columns:  a non-unique url and unique activity id's. These two columns are in one table and i would i like to achive a new column that return the on each row the url with each unique activity ID.

 

So This is the example: In the yellow part of the URL column you see "&[activityid]&" and in the activityid column you see each row a unique id's. A new column will return on first row the following output:

 

This is the example:

A new column need to be created where the yellow marked non-unique value will replayce with {activityid} on each row.

So the first output on this example would be:

 

https://rubiconict.crm4.dynamics.com/main.aspx?etn=appointment&id={018a01c8-cf2d-e811-8145-e0071b65c...

urlid.PNG

 

 

Any suggestions?

 

Many thanks! 

 

7 REPLIES 7
Greg_Deckler
Community Champion
Community Champion

Maybe the SUBSTITUTE function?

 

SUBSTITUTE(<text>, <old_text>, <new_text>, <instance_num>)

 

New Column = SUBSTITUTE([URL],"""&[activityid]&""","{" & [activityid] & "}")


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thank u so much!

No problem, I got there eventually! 🙂


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

urlid.PNG

 

A new column need to be created based on URL column (see yellow part) and activityID that return on each row: 

 

https://rubiconict.crm4.dynamics.com/main.aspx?etn=appointment&id={018a01c8-cf2d-e811-8145-e0071b65c...

Greg_Deckler
Community Champion
Community Champion

Seems like information is missing.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hello,

 

What do you exactly mean?

So This is the example: In the yellow part of the URL column you see "&[activityid]&" and in the activityid column you see each row a unique id's. A new column will return on first row the following output:

 

Is there supposed to be something here?

 

This is the example: A new column need to be created where the yellow marked non-unique value will replayce with {activityid} on each row. So the first output on this example would be:

 

Is there supposed to be something here?

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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