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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Sedos101
Helper I
Helper I

Maximum

Hi Everyone

 

I have the following dilemma and would like to know how to add a new column using Power Query to get the desired result


Basically I have a table with the first two columns however I need another column to populate the maximum payload recorded for a cycle number as can be seen below:

 

Can someone please help me on how to write this in Power Query?

 

Thank you

 

Cycle Number PayloadNew Column For Max Payload
15053
15253
15353
26060
36061
36161
45890
48590
49090
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Sedos101!

I would do the next:

First duplicate the table and group the new table by Cycle number with Max Payload, the formula would be something like this:

 

#"Grouped Rows" = Table.Group(#"Changed Type", {"Cycle Number"}, {{"Count", each List.Max([Payload]), type nullable number}})

 

 Then merge the first table with the new table by cycle number, and you would get this:

Luis98_0-1665223942836.png

I hope this solve your question!😀

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Sedos101!

I would do the next:

First duplicate the table and group the new table by Cycle number with Max Payload, the formula would be something like this:

 

#"Grouped Rows" = Table.Group(#"Changed Type", {"Cycle Number"}, {{"Count", each List.Max([Payload]), type nullable number}})

 

 Then merge the first table with the new table by cycle number, and you would get this:

Luis98_0-1665223942836.png

I hope this solve your question!😀

Legend @Anonymous  thanks so much!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.