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
Matt0515
Frequent Visitor

Custom Column to Concatonate values where NOT BLANK

Hello Experts:

 

I am trying to create a custom column of URL links for only lines that are NOT BLANK in another column.

I know how to make the final output an active link, I am having issues creating the logic in Power Query to ignore the lines with blank in the ID Column.

So in summary, I want to add "https://my.salesforce.com/" & [ID Column]

Sorry if this issue is solved on the boards somewhere, I have been searching all day and cant seem to find what I am looking for:

 

Example:          ID Column:         Desired Result:

Line1                ABCDEF             https://my.salesforce.com/ABCDEF

Line2

Line3                HIJKLMN            https://my.salesforce.com/HIJKLMN

Line4

Line5                1234567             https://my.salesforce.com/1234567

 

Thank you in advance for the help!

 

Matt

 

 

1 ACCEPTED SOLUTION
nandic
Memorable Member
Memorable Member

@Matt0515 ,
In Power Query: Add new column > Custom Column:
Concatenate URL = if [ID] is null then null else "https://my.salesforce.com/"&[ID]
After that, save changes in Power Query and then set data category for this column to be Web url.


concatenate url.PNG

 

concatenate url2.PNG

 

concatenate url3.PNG

View solution in original post

1 REPLY 1
nandic
Memorable Member
Memorable Member

@Matt0515 ,
In Power Query: Add new column > Custom Column:
Concatenate URL = if [ID] is null then null else "https://my.salesforce.com/"&[ID]
After that, save changes in Power Query and then set data category for this column to be Web url.


concatenate url.PNG

 

concatenate url2.PNG

 

concatenate url3.PNG

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.