Forum Discussion
Anonymous
4 years agoNot applicable
Return number value before "-" in string
Hi Experts How would you return the number value in the following string (need the left numbers before the "-") Column Result 0 - 1 week 0 52 - 53 week ...
- 4 years ago
Hi Anonymous ,
I used the formula you mentioned and get the correct result.
Not sure what error you have got by this formula.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please considerAccept it as the solution to help the other members find it more quickly.
Pragati11
Super User
4 years agoHi Anonymous ,
You can get this transformed in Power Query easily.
I am taking the data as you shared above as follows:
Now select your column and from the top ribbon Transform --> Extract --> Text Before Delimiter
A new window appears, where enter your delimiter as "-" and then click OK
Finally you get the desired result:
Hope the solution helps.
Anonymous
4 years agoNot applicable
Hi - Have this but is noting working
Sort_Bands = LEFT('reporting Diagnostics_Weekly_Waiting_MDS'[Wait_Bands],FIND("-",'reporting Diagnostics_Weekly_Waiting_MDS'[Wait_Bands])-1)