Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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 | Payload | New Column For Max Payload |
| 1 | 50 | 53 |
| 1 | 52 | 53 |
| 1 | 53 | 53 |
| 2 | 60 | 60 |
| 3 | 60 | 61 |
| 3 | 61 | 61 |
| 4 | 58 | 90 |
| 4 | 85 | 90 |
| 4 | 90 | 90 |
Solved! Go to Solution.
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:
I hope this solve your question!😀
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:
I hope this solve your question!😀
Legend @Anonymous thanks so much!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |