I am using Power Query in Excel for the first time. Got query to work fine but have too much unneeded data.
Query combines 1000+ files. Each file has ~150 rows of data. Files are named using serial number (SN) and Revision letter for each file.
There are multiple files of different revision levels for each serial number. The file name is shown to left of each row of data.
I only need the rows of data for the latest/highest revision of each serial number. That would equal ~ 33 rows for each serial number. This would give me ~11,000 rows of data instead of the unneeded 540,000+ rows.
So question 1 is can this be done in power query?
If yes then question 2 is how is it done? Need specific details on how to do it as I am new at this in PQ.
Here is an example of 2 Revs for SN 133. I only need the rows that have Rev B to be displayed.
[TABLE="width: 716"]
<tbody>[TR]
[TD]Source.Name[/TD]
[TD]OPTION[/TD]
[TD]OPTION SELECTED[/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev A.xls[/TD]
[TD]Aircraft Model[/TD]
[TD]F-2000[/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev A.xls[/TD]
[TD]Winglets Installed[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev A.xls[/TD]
[TD]ABOC Installed[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev A.xls[/TD]
[TD]BASC Installed[/TD]
[TD]700[/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev A.xls[/TD]
[TD]Battery Voltage Drop Suppression[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev B.xls[/TD]
[TD]Aircraft Model[/TD]
[TD]F-2000[/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev B.xls[/TD]
[TD]Winglets Installed[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev B.xls[/TD]
[TD]ABOC Installed[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev B.xls[/TD]
[TD]BASC Installed[/TD]
[TD]700[/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev B.xls[/TD]
[TD]Battery Voltage Drop Suppression[/TD]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]
Query combines 1000+ files. Each file has ~150 rows of data. Files are named using serial number (SN) and Revision letter for each file.
There are multiple files of different revision levels for each serial number. The file name is shown to left of each row of data.
I only need the rows of data for the latest/highest revision of each serial number. That would equal ~ 33 rows for each serial number. This would give me ~11,000 rows of data instead of the unneeded 540,000+ rows.
So question 1 is can this be done in power query?
If yes then question 2 is how is it done? Need specific details on how to do it as I am new at this in PQ.
Here is an example of 2 Revs for SN 133. I only need the rows that have Rev B to be displayed.
[TABLE="width: 716"]
<tbody>[TR]
[TD]Source.Name[/TD]
[TD]OPTION[/TD]
[TD]OPTION SELECTED[/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev A.xls[/TD]
[TD]Aircraft Model[/TD]
[TD]F-2000[/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev A.xls[/TD]
[TD]Winglets Installed[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev A.xls[/TD]
[TD]ABOC Installed[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev A.xls[/TD]
[TD]BASC Installed[/TD]
[TD]700[/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev A.xls[/TD]
[TD]Battery Voltage Drop Suppression[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev B.xls[/TD]
[TD]Aircraft Model[/TD]
[TD]F-2000[/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev B.xls[/TD]
[TD]Winglets Installed[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev B.xls[/TD]
[TD]ABOC Installed[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev B.xls[/TD]
[TD]BASC Installed[/TD]
[TD]700[/TD]
[/TR]
[TR]
[TD]APM Form for F2X DN133 SN133 Rev B.xls[/TD]
[TD]Battery Voltage Drop Suppression[/TD]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]