Forum Discussion
how to fetch string from paragraph
May be I am over simplifying your requirement.
But does something like this won't work?
New = SUBSTITUTE(Table2[String],"x","")
AnonymousGreg_Deckler
Hi I am getting this error"An argument of function 'MID' has the wrong data type or has an invalid value."
while using MID function
.
- Greg_Deckler8 years agoCommunity Champion
I think you need to read the documentation on these functions more closely.
SEARCH
https://msdn.microsoft.com/en-us/library/ee634235.aspx
You only need 2 parameters, the text to find and where to find it. The last two are optional, where to start (number) and what to return if not found.
MID
https://msdn.microsoft.com/en-us/library/ee634548.aspx
You need three parameters, the text you want to grab a string from, where to start and how many characters to get
So, let's say that you want to pull the phrase "DAX is fun" from some text but you don't know where it is located in the text of [Column4]. You would use something along the lines of:
Column = MID([Column4],SEARCH("DAX is fun",[Column4]),10)