Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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! 😊
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
8 | |
8 | |
8 | |
6 |
User | Count |
---|---|
14 | |
12 | |
11 | |
9 | |
9 |