Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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. |
User | Count |
---|---|
8 | |
6 | |
6 | |
5 | |
5 |
User | Count |
---|---|
9 | |
8 | |
6 | |
6 | |
6 |