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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All ,
is there a DAX formula to get all the characters before a particular string? please let me know
For Ex: in the below string i need to extract words before Benchmark
TOTAL EQUITY Benchmark
PRIVATE EQUITY Benchmark
EMERGING POOL Benchmark
Output:
TOTAL EQUITY
PRIVATE EQUITY
EMERGING POOL
Solved! Go to Solution.
or
Column =
VAR __t = SEARCH(" Benchmark",[Column1],1,0)-1
RETURN
LEFT([Column1],__t)
or
Column =
VAR __t = SEARCH(" Benchmark",[Column1],1,0)-1
RETURN
LEFT([Column1],__t)
pls try this
Column =
VAR __t = SUBSTITUTE('Table'[Column1]," Benchmark","|")
RETURN
TRIM(PATHITEM(__t,1,TEXT))
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 82 | |
| 72 | |
| 46 | |
| 35 |