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
tomekm
Helper III
Helper III

Split a mixed data type column into hyperlink and text

Hello,

 

I have an excel column (lets call it: “more info”) that contains rows with mixed data: text and hyperlinks in each cell. When imported into Power BI, I would like to split the “more info” column into 2 new columns: one to isolate the text and the other one to isolate the hyperlink.

 

But when I import this file into power bi, both the text portion and the hyperlinks are treated as text, and changing it to “web URL” in the data type does not do anything (PBI does not differentiate whats text and whats hyperlink for each cell; the hyperlink portion gets converted to text).

 

Any ideas on how to split the column into 2: a) the text, b) the hyperlink? Or how to convert the hyperlink into an actual URL in Power bi (and not excel)?

 

Thank you.

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

 Hi @tomekm 

In the situation, you can use Power BI Split Columns option to split that column into multiple columns.Please refer to the following document to see if it helps you.

https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

5 REPLIES 5
v-rongtiep-msft
Community Support
Community Support

 Hi @tomekm 

In the situation, you can use Power BI Split Columns option to split that column into multiple columns.Please refer to the following document to see if it helps you.

https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

VahidDM
Super User
Super User

Hi @tomekm 

 

Can you share a sample of your data in a table format?

 

BTW, you can split them by using SEARCH or FIND and then use Len, Right or left.

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

Here is the sample data:

 

Folder Path

SubjectImportanceHasAttachments"More info" column:
\Calendar\ABC meetingNormalFalseMeeting minutes <<<<<<<< (this is the hyperlink)  
>>>>>> this is the text: Join the meeting to discuss important topics…..
Anonymous
Not applicable

Agreed, a sample dataset would be nice.  If you can identify a reliable delimeter then it's pretty straightforward and could be done in Power Query.  Even without a consistent delimiter there could still be some options in PowerQuery or DAX.

Here is the sample data:

 

Folder Path

SubjectImportanceHasAttachments"More info" column:
\Calendar\ABC meetingNormalFalseMeeting minutes <<<<<<<< (this is the hyperlink)  
>>>>>> this is the text: Join the meeting to discuss important topics…..

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.