Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I want to add 4 to the list {5,6} and keep the others elements (lists) of the (outer) list
Source = {{1,2,3}, {5,6}, {12,13}}
//JW
Solved! Go to Solution.
Place the following M code in a blank query to see the steps.
let
Source = {{1,2,3}, {5,6}, {12,13}},
res_ = List.Transform(Source, each if _ = {5,6} then _ & {4} else _)
in
res_
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
Place the following M code in a blank query to see the steps.
let
Source = {{1,2,3}, {5,6}, {12,13}},
res_ = List.Transform(Source, each if _ = {5,6} then _ & {4} else _)
in
res_
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |