- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Using Text.BetweenDelimiters in a Conditional Column or using multiple delimters
Hi
I want to use multiple formulas as output parameter in a conditional column with multiple conditions.
Column A | Column B | Column C | Column D |
P | 1/2/3/4/5 | 3 | 3 |
P | 5/6/7/8 | 7 | 7 |
Q | 8 9 6 7 | 6 |
|
R | 11-22-33-44 | 33 |
|
The formula that I’m using in Col. D is:
Table.AddColumn(#"Reordered columns", " Column D", each Text.BetweenDelimiters([Column B], "/", "/", 2, 0))
Can the above formula be tweaked further to include multiple delimiters ?
I think that using a conditional column will be the solution.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Why not just Replace all your delimiters (space and hyphen) with "/" and use one formula with "/"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Even though your formula doesn't return the value you show in your example, it appears you wish to return the third delimited item. That being the case, you can use the Text.SplitAny function and return the third item (index=2):
= Table.AddColumn(#"Reordered Columns", "Column D",
each Text.SplitAny([Column B]," /-"){2})
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Why not just Replace all your delimiters (space and hyphen) with "/" and use one formula with "/"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Sounds like a good idea but if I turn all the delimiters to '/' then I may lose out on some of the info because the required text may contain other delimiters. For example the required text may be '78-1' or '78 a' which may be missed out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Try to update your example to include such potential scenarios/issues and an expected result column.
Is there a specific way you can tell when a space or hyphen is a required part of the info? You could do a conditional replace if that's the case. Sounds like you would a similar issue whether you replaced the delimeters or tried some conditional logic on text between multiple delimiters.

Helpful resources
Join our Fabric User Panel
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Power BI Monthly Update - June 2025
Check out the June 2025 Power BI update to learn about new features.

User | Count |
---|---|
15 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
15 | |
13 | |
7 | |
7 | |
6 |