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 everyone, I am trying to write a DAX code to extract the text after delimitter.
Example Dataset:
| Charge Code | Expected Output |
| AON05-0009-EI | EI |
| AON008-S | S |
| BT01-0002-EL | EL |
Phase =
RIGHT(
'Table'[Charge Code],
SEARCH("-",'Table'[Charge Code],)-4)
I tried to use the above code but it does not work fine. Can anyone please help me to extract the text after the second delimited using DAX?
I also tried using PowerQuery but when I give condition to skip first delimitter, I am getting blanks for a few chargecodes (for ex: AON008-S in the data above)
Somebody please help me out with this problem. Thank you in advance!
Solved! Go to Solution.
Hi @Anonymous
In Power Query, you have an option to split at right most delimiter. Would it solve your problem?
Hi @Anonymous
In Power Query, you have an option to split at right most delimiter. Would it solve your problem?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 44 | |
| 41 | |
| 36 | |
| 21 |
| User | Count |
|---|---|
| 175 | |
| 119 | |
| 106 | |
| 77 | |
| 50 |