Power BI MAX on one column determined by another

Slevin

New Member
Joined
Jan 11, 2018
Messages
1
Hi all

So my issue is I have a column showing journeys of car from A-B, B-C, A-C etc, but there are many for each instance (four A-B journeys in the week for example). I also have another column which show's number of passengers in the cars and that number varies amongst the journeys (A-B with 3 passengers, A-B with 1 passenger etc.). I want to be able to find a way to find the MAX of the number of passengers for each Journey and bring back that MAX value against every journey. So, in the example above, I'd expect to see A-B journey with 3 against the value.



This might help:

A-B - 1

A-B - 3

A-B - 2

C-D - 5

C-D - 2

C-D - 1



A-B = 3 for all A-B’s present

C-D = 5 for all C-D’s present



Does anyone know how to do this? I've been trying to use a MAXX to disaggregate but I can't seem to find a way to make it work!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,223,676
Messages
6,173,773
Members
452,534
Latest member
autodiscreet

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