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.
I know there is a way to do this in Power Query but I am just wondering if there is an option in DAX primarily in a calculated column.
Currently my data looks like this . Thanks in advance!
Code | Expected result |
BSA06 Test North - 19C | 19C |
ASA01 Test-ABC - 32B | 32B |
ESA05 NotReal – 15 | 15 |
TSA01 Awesome Rural - Prov | Prov |
try to write like this
Text.Trim(Text.Range(
[Code],
Text.PositionOfAny(
[Code],
{Character.FromNumber(8211), Character.FromNumber(45)},
RelativePosition.FromEnd
)
+ 1
))
Sample PBIX file attached
https://1drv.ms/u/s!AiUZ0Ws7G26RhkhamWLt92LapWi6?e=vnoowN
Hi,
Try this calculated column formula
Column = mid(Data[Code],SEARCH(" - ",Data[Code],,0)+3,50)
It does not work for the third one, because that symbol is not a -.
Please check this post and solution https://community.powerbi.com/t5/Desktop/Splitting-Text-on-multiple-delimiters-with-DAX/m-p/2480035
Regards,
Ritesh
Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !! PL 300 Certification Series
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
96 | |
69 | |
43 | |
38 | |
29 |
User | Count |
---|---|
154 | |
93 | |
63 | |
42 | |
41 |