Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I have following column in which the characters before "/" need to be removed (deleted). If split column is used, the values after "/" goes to a new column. but I need those values to remain in column A along with the existing values without "/".
Column A |
Ellite/trf1234u |
Elite/czc0987xy |
Pro/trfwx89io |
trfgh789re |
czcyr6780i |
Pro/czc89piu |
Elitepro/ui876tr |
Thanks in advance.
@Imrx2 - use:
Table.TransformColumns(#"Changed Type", {{"Column A", each Text.AfterDelimiter(_, "/"), type text}})
which can also be used in the GUI in the Transform tab > Text Column > Extract > Text After Delimiter
returns:
Proud to be a Super User!
Hi Chris,
when Extract > Text After Delimiter is done, the values which do not contain the delimiter "/" become blank.
please note, I have over 6000 rows in this sheet along with other columns.
Thanks
@Imrx2 - well, I suppose you could add a column as :
= Table.AddColumn(#"Changed Type", "Custom", each if Text.Contains([Column A],"/") then Text.AfterDelimiter([Column A], "/") else [Column A])
rather than using the GUI.
Proud to be a Super User!
Hi @Imrx2,
You can split the "Column A" into two separate columns by using the "Split Column" transformation in Power Query. Here's how you can do it:
This will split the "Column A" into two separate columns: the original column with the characters before "/", and a new column with the characters after "/". If you want to keep the values after "/" in the original column, you can follow these additional steps:
This will keep the values after "/" in the original "Column A" column, along with the existing values without "/".
Best regards,
Isaac Chavarria
If this post helps, then please consider Accepting it as the solution and giving Kudos to help the other members find it more quickly
Thanks Isaac for the quick response. but the new column which is getting created after splitting does not contain "/" character. moreover for the values without the delimiter in the original column its showing null in the new column getting created.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
79 | |
63 | |
52 | |
47 |
User | Count |
---|---|
217 | |
89 | |
76 | |
67 | |
60 |