Forum Discussion

josephtsmith's avatar
josephtsmith
Regular Visitor
5 years ago
Solved

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'[...
  • v-yingjl's avatar
    v-yingjl
    5 years ago

    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 ) )

    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.