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
kenzzzo82
Regular Visitor

Extracting the first comma separated value to a new column

This seems like it should be easy but I am having a bit of trouble. I have a list of clients each client has multiple servers. Each server for that client has the same specs and I have a separate spreadsheet with Specs on it. 

 

So to join the two together I just need one common server. 

 

The Webserver column lists the servers as "Server1,Server2,Server3"

 

I want to extract Server1 only for each client and populate a column called FirstServer. I can then join on that value to add in the specs for each client. Hope that makes sense 🙂 

1 ACCEPTED SOLUTION

In addition: if you want the result in a new column: choose Extract in the "Add Column" tab.

In the Extract submenu, "Text Before Ddelimiter" should suit your needs,

Specializing in Power Query Formula Language (M)

View solution in original post

5 REPLIES 5
Gui_Costa
Frequent Visitor

Hey Buddy.

 

You can use the "Extract" function, under the Transform tab in the query editor. This function allows you to choose the separator, in your case, the comma. 

Hope it helps

 

Regards

I am new to using PowerBI Desktop and I only see Home and Modeling tabs. Do I need to add tabs in options some where?

No, you can choose "Edit Queries" on the Home tab.

 

Then you will see the tabs and options we mentioned previously.

Specializing in Power Query Formula Language (M)

Worked perfectly. Thanks guys!

In addition: if you want the result in a new column: choose Extract in the "Add Column" tab.

In the Extract submenu, "Text Before Ddelimiter" should suit your needs,

Specializing in Power Query Formula Language (M)

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