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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
CostaBella
Frequent Visitor

Group By

I am fairly new to Power Query but am learning quickly. I have a data set of lots bidders that shows the ID# for each proposal, ID# for each bidder, and then each bid. My goal is to pull the lowest bid for each proposal, which I have been able to figure out. However when I use the Group By feature, it takes away the column for the bidder ID#. Any suggestions?

6 REPLIES 6
ronrsnfld
Super User
Super User

Hard to be specific without sample data, but you could add an aggregation to the Table.Group function which outputs the bidder ID.  You would do this in the Advanced Editor.  Something like {"Bidder ID", each [Bidder ID #]{0}, type text}

 

Einomi
Helper V
Helper V

I have replicated some of your data

Please try the code below and adjust with the name of your columns

 

let
  Source = Excel.Workbook(File.Contents("/Users/daniel/Desktop/Classeur3.xlsx"), null, true),
  #"Navigation 1" = Source{[Item = "Tableau1", Kind = "Table"]}[Data],
  #"Type de colonne changé" = Table.TransformColumnTypes(#"Navigation 1", {{"Prop ID", Int64.Type}, {"Bider ID", Int64.Type}, {"Bid", Int64.Type}}),
  #"Lignes groupées" = Table.Group(#"Type de colonne changé", {"Prop ID"}, {{"All", each Table.Min( _,"Bid"),type record}})[All],
  Personnalisé =  Table.FromRecords (#"Lignes groupées")
in
  Personnalisé
danishefa
Frequent Visitor

Can you please select the columns ID# proposal and also ID# bider and then select group by

Yea I tried that, but it still has all the bids for each proposal and bidder. I want it to only show the lowest bid while still mainting the ID#s for proposals and bidders.

 

Pro ID        Bidder ID             Bid Amount

CostaBella_0-1657715849056.png

 

danishefa
Frequent Visitor

Hi Could you put some screenshot ?

Left is before the "Group By" and the right is afterwards.

 

 

CostaBella_0-1657715133297.pngCostaBella_1-1657715158380.png

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.