Forum Discussion

gsp35's avatar
gsp35
New Member
2 years ago
Solved

Help Needed for Work

Hi-   I am sending RFQs to 7 vendors and I am tyring to create a data base that will refresh as prices come in. I would like to only pull in the minimum price value if the minimum is greater than 0...
  • Anonymous's avatar
    Anonymous
    2 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 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