Forum Discussion
ghaines
Resolver I
2 years agoBest way to approach some data
I'm working with some data that records a primary failure reason ID in one column, and other failure reason IDs as CSV in another column. The primary failure reason may or may not be represented in ...
- 2 years ago
You could
List.RemoveItems(Text.Split([Failure Reason], ","), {[Primary Failure Reason]})
Then add a suffix to the primary reason like ":P"
Combine into a list, split to new rows, split by ":" into columns.
The rows with the "P" in the new column are the primary reasons.
spinfuzer
Solution Sage
2 years agoYou could
List.RemoveItems(Text.Split([Failure Reason], ","), {[Primary Failure Reason]})
Then add a suffix to the primary reason like ":P"
Combine into a list, split to new rows, split by ":" into columns.
The rows with the "P" in the new column are the primary reasons.
- ghaines2 years ago
Resolver I
And with this I could reliably set where the primary failure reason appears. Thanks!