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
RMDNA
Solution Sage
Solution Sage

Dropping a field into a URL

I have a field [ID] in a table which is a component of a URL that will link it to our CRM system.

 

(e.g. the CRM link for an item with ID of [ABCD] would be: http://database/main.aspx?id={ABCD}.)

 

How do I create a custom column which would be a URL of this ID? That is, I would like to create a custom column of

http://database/main.aspx?id={[drop ID here]}

 

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi @RMDNA

 

You could do this in the Query Editor and if you have got the latest version of Power BI Desktop, you can use the Add Columns from Example.

 

In the example field, put what you have below, and see if it can complete it for you.

 

If that does not work, then in the Query Editor, you can add a Custom Column and put in the following syntax in the "Custom column formula:"

 

"http://database/main.aspx?id=" & [ID]

Then load the data and make sure to change the Data Category in the Modeling Ribbon to Web URL for the link to work.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

3 REPLIES 3
GilbertQ
Super User
Super User

Hi @RMDNA

 

You could do this in the Query Editor and if you have got the latest version of Power BI Desktop, you can use the Add Columns from Example.

 

In the example field, put what you have below, and see if it can complete it for you.

 

If that does not work, then in the Query Editor, you can add a Custom Column and put in the following syntax in the "Custom column formula:"

 

"http://database/main.aspx?id=" & [ID]

Then load the data and make sure to change the Data Category in the Modeling Ribbon to Web URL for the link to work.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

@GilbertQ, down in one, thank you! I've tried working with Add by Example before but it was always too finicky to work. This worked great.

Awesome @RMDNA glad it solved your issue.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

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