Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
josephtsmith
Regular Visitor

The search Text provided to function 'FIND' could not be found in the given text.

ERROR:

The search Text provided to function 'FIND' could not be found in the given text.

 

DAX Formula

Work Type Category = RIGHT('Work Order'[Work_Type_Service_Coverage__c], LEN('Work Order'[Work_Type_Service_Coverage__c])-FIND(" - ",'Work Order'[Work_Type_Service_Coverage__c]))
 
Any assistance is appreciated!
1 ACCEPTED SOLUTION

Hi @josephtsmith ,

Try to modify the formula like this:

Work Type = 
VAR a =
    RIGHT (
        'Work Order'[Work_Type_Service_Coverage__c],
        LEN ( 'Work Order'[Work_Type_Service_Coverage__c] )
            - FIND ( "-", 'Work Order'[Work_Type_Service_Coverage__c] )
    )
RETURN
    LEFT ( a, FIND ( " -", a ) )

find.png

Attached a sample file in the below, hopes it could help.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@josephtsmith , see fine.

 

Try like one of the two

 

Work Type Category = RIGHT('Work Order'[Work_Type_Service_Coverage__c], LEN('Work Order'[Work_Type_Service_Coverage__c])-FIND(" - ",'Work Order'[Work_Type_Service_Coverage__c],,0))


Work Type Category = RIGHT('Work Order'[Work_Type_Service_Coverage__c], LEN('Work Order'[Work_Type_Service_Coverage__c])-FIND(" - ",'Work Order'[Work_Type_Service_Coverage__c],,LEN('Work Order'[Work_Type_Service_Coverage__c])))

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Still searching for resolution; thanks!

Neither option above worked.

 

Here are some values from the source column (Work_Type_Service_Coverage__c): 

APERIO AT - REPAIR - Service Contract

APERIO AT - UPGRADE - SU Warranty

APERIO AT TURBO - APPLICATION SUPPORT - Application Support

 

The part that we're trying to get at is the middle between the dashes.

Thanks!

Hi @josephtsmith ,

Try to modify the formula like this:

Work Type = 
VAR a =
    RIGHT (
        'Work Order'[Work_Type_Service_Coverage__c],
        LEN ( 'Work Order'[Work_Type_Service_Coverage__c] )
            - FIND ( "-", 'Work Order'[Work_Type_Service_Coverage__c] )
    )
RETURN
    LEFT ( a, FIND ( " -", a ) )

find.png

Attached a sample file in the below, hopes it could help.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.