The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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?
Solved! Go to Solution.
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
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
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...