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
Anonymous
Not applicable

Picking up rows corresponding to tower Model ID with the highest base ITEM Number

Hi Guys, 

I have these 2 columns in addition to others and my objective is pick up only those rows as shown below corresponding to the highest base index in the item column. ( Item is text here but I dont want to lose 5.10 as it is becoming 5.1 after changing to decimal numbers)

 

So I want to finally have the table with the entries corresponding to 5.1, 5.2 , 5.3.......5.13 for tower Model ID for 24422.

 

How can I achieve this ?

 

vito123_0-1707676396379.png

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

- add a column that interprets the item as an Integer

- group by TowerModelID and add a max aggregation over the new column, and another aggregation with all rows

- expand the grouped rows

- filter the result to only keep rows where the max aggregation equals the newly created column.

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

- add a column that interprets the item as an Integer

- group by TowerModelID and add a max aggregation over the new column, and another aggregation with all rows

- expand the grouped rows

- filter the result to only keep rows where the max aggregation equals the newly created column.

Anonymous
Not applicable

Thanks a lot @lbendlin !!! A great and an elegant solution in power Query itself !! Thanks again..

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.