Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
gsp35
New Member

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. If it is not greater than zero I would like it to pull the next lowest price.

 

I have the data broken up by ID number "LONG DESCRIPTION" then a table associated with each ID number "Table 1".

 

Can someone please help me find a way to provide the all information asscoicated with the lowest price for each ID number?

 

gsp35_0-1696448972595.png

gsp35_1-1696449022095.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

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

lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors