Consider data based on latest date in Power BI editor

shansakhi

Active Member
Joined
Apr 5, 2008
Messages
289
Office Version
  1. 365
Platform
  1. Windows
Hi All,
Need your assitance in Power BI to consider Data based on latest date.
below is the Input table where multiple dates are available for respective Bus No and Sec.. I want to consider data for latest date for these Bus no.

Book1
HIJKLMNOP
3InputOutout
4Bus NoSecDep_DatePax NoBus NoSecDep_DatePax No
5101AB2-Dec-22150101AB15-Sep-24100
6101AB15-Jan-23110103XX12-Dec-23202
7101AB18-Mar-23180
8101AB15-Sep-24100
9103XX18-Dec-2250
10103XX10-Mar-2375
11103XX12-Dec-23202
Sheet1
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Simple way is to create a separate query that groups on Bus No and Max of the Dep_Date. Then merge that to the main query with an inner join (only matching records) on both Bus No and Dep_Date.
 
Upvote 0
Solution

Forum statistics

Threads
1,221,482
Messages
6,160,086
Members
451,616
Latest member
swgrinder

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