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
Hello,
I'm trying to extract the number before the colon (see example below) using DAX.
Here are the steps I did:
1. To return the specified number of characters I want (it worked)
c_Search Request Target Time = SEARCH(":", 'MyRequest_Consolidated'[Request Target Time],,LEN('MyRequest_Consolidated'[Request Target Time]))-1
2. To extract the number before the colon
Is there any other way to extract the number I need before the colon (:)? The data type of the column is "Text". Thank you!
Solved! Go to Solution.
Hi @rosemilo
please try
c_Request Target Time =
IF (
MyRequest_Consolidated[c_Search Request Target Time] > 0,
LEFT (
'MyRequest_Consolidated'[Request Target Time],
MyRequest_Consolidated[c_Search Request Target Time]
)
)
Hi @rosemilo
please try
c_Request Target Time =
IF (
MyRequest_Consolidated[c_Search Request Target Time] > 0,
LEFT (
'MyRequest_Consolidated'[Request Target Time],
MyRequest_Consolidated[c_Search Request Target Time]
)
)
Thank you! It worked! 😊
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 |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 10 |