Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I have the Name column and would like to extract it as the Expecting Name (Result):
| Name | Expecting Name |
| AZER.SDD | AZER |
| AZEDT.FV | AZEDT |
| AZERZ.cFS | AZERZ |
| VSFS.DFS | VSFS |
| 12.12.12 | 12.12.12 |
| 12.34 | 12.34 |
| VSD.ZRE | VSD |
| DFS.RF | DFS |
| 12.234 | 12.234 |
If name starts by 12 , Expecting Name = Name
IF name starts by letter, expecting name = text before the first delimiter
Thank you in advance for your help.
Tg
Solved! Go to Solution.
Hi @Anonymous ,
Do the TextBeforeDelimiter option and then change the code to:
= Table.AddColumn(Source, "Text Before Delimiter", each if Text.Start([Name], 2) = "12" then [Name] else Text.BeforeDelimiter([Name], "."), type text)
Has you can see the part of the split is updated to an IF statement:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous ,
Do the TextBeforeDelimiter option and then change the code to:
= Table.AddColumn(Source, "Text Before Delimiter", each if Text.Start([Name], 2) = "12" then [Name] else Text.BeforeDelimiter([Name], "."), type text)
Has you can see the part of the split is updated to an IF statement:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThank you for your help
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 122 | |
| 110 | |
| 83 | |
| 69 | |
| 68 |