Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |