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

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
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,215,028
Messages
6,122,749
Members
449,094
Latest member
dsharae57

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