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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.