Power BI - Max index using Type and ID

Raj1313

Board Regular
Joined
Nov 20, 2014
Messages
125
Hi,

i am trying to get the max ID using Type and Index in edit queries

I have the below data set

IDTYPEINDEX
301A1
301A2
302A3
302A4
303B5
304B6
305B7

The result should be:

IDTYPEINDEX
302A4
305B7

Any ideas?


Thanks in advance
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
IDTYPEINDEXIDTYPEIndex
301A1302A4
301A2305B7
302A3
302A4
303B5
304B6
305B7

Rich (BB code):
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Group = Table.Group(Source, {"TYPE"}, {{"ID", each List.Max([ID]), type number}, {"Index", each List.Max([INDEX]), type number}}),
    TSC = Table.SelectColumns(Group,{"ID", "TYPE", "Index"})
in
    TSC
 
Upvote 0
Hi Sandy, thanks for this - worked perfect!! (i was not able to message from my original account above)

Thanks again
 
Upvote 0

Forum statistics

Threads
1,223,796
Messages
6,174,655
Members
452,575
Latest member
Fstick546

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top