Hope you are doing well and help me with below query about BAQ.
Please see example below - current results
+-------+------+--------------+------+
| Order | Part | Ship By Date | Wave |
+-------+------+--------------+------+
| 1231 | A | 11/04/2018 | 333 |
| 1231 | A | 11/04/2018 | 257 |
| 2522 | C | 11/04/2018 | 333 |
| 2556 | A | 11/04/2018 | 0 |
+-------+------+--------------+------+
I need to find the way using calculated fields or other options in BAQ to see only one wave no. for each order line. Something like show me top wave when ship by date and order no. are the same else 0 end
+-------+------+--------------+------+
| Order | Part | Ship By Date | Wave |
+-------+------+--------------+------+
| 1231 | A | 11/04/2018 | 333 |
| 2522 | C | 11/04/2018 | 333 |
| 2556 | A | 11/04/2018 | 0 |
+-------+------+--------------+------+
Hope you will be able to help, many thanks in advance.
I don't have Epicor 10 readily available to me, but I had achieved something like this by creating subqueries.
You will need to utilize (what I believe Epicor calles) inner queries. You inner subquery will be need to be set as a Top option with a sort option of wave descending and returning the four fields listed in your example. You will then join the table to itself with the order, part, and shipby fields as the key values. This should work.
If you have access to an instance of SSMS, you could try something like: