Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
in power query, when groping rows is there any way using Power M to pick column from each column as below
For Quanity ordered column, select maxium value
For remaining, columns are selected from the row where Receipt date is bigger
Solved! Go to Solution.
Hi @dogburalHK82 ,
Here's my sample data. I also added a third row for a better demo. A column of Group IDs has also been added, and I think you have a similar column in your data for grouping.
Here's my solution.
1.You can group like this.
2.Expand rows.
3.Add a conditional column.
4.Filter out "0".
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous thank you for the detailed instruction.
Hi @dogburalHK82 ,
Here's my sample data. I also added a third row for a better demo. A column of Group IDs has also been added, and I think you have a similar column in your data for grouping.
Here's my solution.
1.You can group like this.
2.Expand rows.
3.Add a conditional column.
4.Filter out "0".
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 7 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 15 | |
| 14 | |
| 12 | |
| 9 |