Forum Discussion
ToddMate
Helper II
2 years agoDelimiter in second column - Same table
Hi All, I need help, in short, I have 2 columns,Queue and Reason within my Sales table. There are multiple values in each column seperated by the ; delimiter. I am wanting to return the value t...
- Anonymous2 years ago
Hi ToddMate ,
According to your description, here are my steps you can follow as a solution.
(1) We can create a calculated column.
Result = VAR _a1 = SUBSTITUTE( SUBSTITUTE(('Table'[Queue])," ",""),";","|") var _a2= MINX ( FILTER ( GENERATESERIES ( 1, PATHLENGTH ( _a1 ), 1 ), PATHITEM ( _a1, [Value], TEXT ) = "Sales" ), [Value] ) var _a3= SUBSTITUTE( SUBSTITUTE(('Table'[Reason])," ",""),";","|") RETURN PATHITEM ( _a3, _a2, INTEGER )(2) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
2 years agoNot applicable
Hi ToddMate ,
According to your description, here are my steps you can follow as a solution.
(1) We can create a calculated column.
Result =
VAR _a1 = SUBSTITUTE( SUBSTITUTE(('Table'[Queue])," ",""),";","|")
var _a2=
MINX (
FILTER (
GENERATESERIES ( 1, PATHLENGTH ( _a1 ), 1 ),
PATHITEM ( _a1, [Value], TEXT ) = "Sales"
),
[Value]
)
var _a3= SUBSTITUTE( SUBSTITUTE(('Table'[Reason])," ",""),";","|")
RETURN PATHITEM ( _a3, _a2, INTEGER )
(2) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.