Forum Discussion
Mohamed_Noor
3 years agoFrequent Visitor
Required to keep Min and Max values - Power Query
Dear All, I would keep only the rank column as min and max value of details from the below table using power query EXample Name RANK ARP 1 ARP 2 ARP 3 ARP 4 ARP 5 DAS...
- Anonymous3 years ago
Nice.
--Nate
jgordon11
3 years agoResolver II
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText(
"i45WcgwKUNJRMlSK1YGxjZDYxkhsEyS2KZjt4hgM1wthGyGxIXqDHV0gamIB", BinaryEncoding.Base64), Compression.Deflate)),
type table [Name = (type nullable text), Rank = (type number)]),
tbl = Table.Group(Source, {"Name"}, {{"Rank", each List.Distinct({List.Min([Rank]),List.Max([Rank])})}}),
tbl1 =Table.ExpandListColumn(tbl, "Rank"),
Result = Table.TransformColumnTypes(tbl1,{{"Rank", Int64.Type}})
in
ResultAnonymous
3 years agoNot applicable
Nice.
--Nate