Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I need to return all characters before the "/" in driver name as a new column so i'm using the below DAX but it just errors with "The search Text provided to function 'SEARCH' could not be found in the given text." I have tried other characters and it's just not finding it. The driver name column is setup as text.
Solved! Go to Solution.
Hi @Jebilaya ,
You need to add the additonal parameter of the SEARCH funcion so your SEARCH should be similar to this:
SEARCH( "/", 'Table'[Column1],1,1)
Has you can see in the documentation if you ommit the last parameter it returns an error.
I have placed 1 so that when you do the -1 it does not trow an error on the left text.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsTry the iferror with 1 not 0.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Jebilaya ,
You need to add the additonal parameter of the SEARCH funcion so your SEARCH should be similar to this:
SEARCH( "/", 'Table'[Column1],1,1)
Has you can see in the documentation if you ommit the last parameter it returns an error.
I have placed 1 so that when you do the -1 it does not trow an error on the left text.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsTry the iferror with 1 not 0.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Portuguêsthat was great thanks @MFelix ... now stuck on my next one for the other side.
The len part of the function is producing a number when I run it on it's own but when I put it as part of the right statement I get the below error
Try to add a IFERROR on the Second part of the metric.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsTry to add a IFERROR on the Second part of the metric.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português