Forum Discussion
Help Needed for Work
- Anonymous2 years ago
Hi gsp35 ,
Please refer to:let Source = #table({"LONG DESCRIPTION","Table 1"},{{"AA",#table({"ID #","PRICE"},{{1,20},{1,40},{1,30},{1,15},{1,60},{1,0},{1,50}})},{"BB",#table({"ID #","PRICE"},{{1,20},{1,40},{2,30},{2,15},{3,60},{3,0},{3,50}})},{"CC",#table({"ID #","PRICE"},{{1,20},{1,10},{2,30},{2,15},{1,60},{1,1},{1,50}})}}), #"Added Custom" = Table.TransformColumns(Source,{"Table 1", each Table.Group(Table.SelectRows(_,each _[PRICE]>0),{"ID #"},{{"Min Price", each List.Min(_[PRICE]), type number}})}) in #"Added Custom"Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hi gsp35 ,
Please refer to:
let
Source = #table({"LONG DESCRIPTION","Table 1"},{{"AA",#table({"ID #","PRICE"},{{1,20},{1,40},{1,30},{1,15},{1,60},{1,0},{1,50}})},{"BB",#table({"ID #","PRICE"},{{1,20},{1,40},{2,30},{2,15},{3,60},{3,0},{3,50}})},{"CC",#table({"ID #","PRICE"},{{1,20},{1,10},{2,30},{2,15},{1,60},{1,1},{1,50}})}}),
#"Added Custom" = Table.TransformColumns(Source,{"Table 1", each Table.Group(Table.SelectRows(_,each _[PRICE]>0),{"ID #"},{{"Min Price", each List.Min(_[PRICE]), type number}})})
in
#"Added Custom"
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum