The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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 | 1 |
DAS | 2 |
DAS | 3 |
SAD | 1 |
Looking for
Name | RANK |
ARP | 1 |
ARP | 5 |
DAS | 1 |
DAS | 3 |
SAD | 1 |
Solved! Go to Solution.
Nice.
--Nate
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
Result
Nice.
--Nate
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
180 | |
54 | |
42 | |
28 | |
26 |