Forum Discussion
Return number value before "-" in string
- 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.
Hi 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.
- Anonymous4 years agoNot applicable
Hi Pragati 11 - firstly, apologies - this has to be a calculated column... My fault.. I can do this the PQ way...
- Anonymous4 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)