michiel_soede
New Member
- Joined
- Oct 7, 2009
- Messages
- 15
All,
I have attached simplified data set.
[TABLE="width: 302"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Asset[/TD]
[TD]Status[/TD]
[TD]Priority[/TD]
[TD]Timestamp[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Terminate[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]13-Oct-18[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]New[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]13-Oct-18[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Terminate[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]13-Oct-18[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Change[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]13-Oct-18[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Terminate[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]13-Oct-18[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Change[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]13-Oct-18[/TD]
[/TR]
</tbody>[/TABLE]
Is it possible in power query to select / query the first asset after I have sorted on priority? I can't simply select the status where I don't have the same transaction types for all assets (so for one asset I have new and terminated and for others ceased and new for example). Therefore I need to pick the first prioritized transaction per group of transaction for each asset.
Thanks for your help
Michiel
I have attached simplified data set.
[TABLE="width: 302"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Asset[/TD]
[TD]Status[/TD]
[TD]Priority[/TD]
[TD]Timestamp[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Terminate[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]13-Oct-18[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]New[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]13-Oct-18[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Terminate[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]13-Oct-18[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Change[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]13-Oct-18[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Terminate[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]13-Oct-18[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Change[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]13-Oct-18[/TD]
[/TR]
</tbody>[/TABLE]
Is it possible in power query to select / query the first asset after I have sorted on priority? I can't simply select the status where I don't have the same transaction types for all assets (so for one asset I have new and terminated and for others ceased and new for example). Therefore I need to pick the first prioritized transaction per group of transaction for each asset.
Thanks for your help
Michiel