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! Request now

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
Super User
Super User

@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
Super User
Super User

@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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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