This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
i need to split this column by the left most delimiter "/", how can i do this.
I have the follwing code but it didn,t work for me
| ABC/DDD/AAA/CCC | ABC | DDD/AAA/CCC |
Solved! Go to Solution.
Hi @Yqy,
The formula you provided seems to be correct, but you may need to adjust it if the data in your column does not always have the same number of delimiter characters ("/").
Here's the modified formula that you can try:
= LEFT('Data'[Column 1], FIND("/", 'Data'[Column 1] & "/")-1)
The difference is that we added a "/" character at the end of the column data in the FIND function. This is to ensure that the formula always finds a delimiter character, even if the original data does not end with one.
Alternatively, you can use the Text.Split function to split the column data by the delimiter and extract the first element of the resulting list. Here's the formula for that:
= Text.Split('Data'[Column 1], "/"){0}
This formula splits the column data into a list using the delimiter "/", and then extracts the first element of the list (which corresponds to the text before the first delimiter).
Best regards,
Isaac Chavarria
If this post helps, then please consider Accepting it as the solution and give Kudos to help the other members find it more quickly
Hi @Yqy,
The formula you provided seems to be correct, but you may need to adjust it if the data in your column does not always have the same number of delimiter characters ("/").
Here's the modified formula that you can try:
= LEFT('Data'[Column 1], FIND("/", 'Data'[Column 1] & "/")-1)
The difference is that we added a "/" character at the end of the column data in the FIND function. This is to ensure that the formula always finds a delimiter character, even if the original data does not end with one.
Alternatively, you can use the Text.Split function to split the column data by the delimiter and extract the first element of the resulting list. Here's the formula for that:
= Text.Split('Data'[Column 1], "/"){0}
This formula splits the column data into a list using the delimiter "/", and then extracts the first element of the list (which corresponds to the text before the first delimiter).
Best regards,
Isaac Chavarria
If this post helps, then please consider Accepting it as the solution and give Kudos to help the other members find it more quickly
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 33 | |
| 25 | |
| 23 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 41 | |
| 27 | |
| 22 | |
| 22 |