Forum

Use PQ to quickly c...
 
Notifications
Clear all

Use PQ to quickly choose the most recent invoice for a customer from a list of invoices

5 Posts
2 Users
0 Reactions
91 Views
(@agwalsh)
Posts: 100
Estimable Member
Topic starter
 

I have a scenario where a customer only wants the most recent invoices analysed in a data set. So a data dump comes in from QuickBooks - clean up is fine. How can I set it up so that it only picks up the most recently dated invoice (or possibly invoices) from a customer for the next step? I have tried grouping and column from examples and had a look at the conditional column. I've also had a look at the pivot tables option...any pointers would be most appreciated..thank you. 

 
Posted : 31/07/2018 5:51 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Anne,

You were on the right track with the grouping. See attached.

Mynda

 
Posted : 31/07/2018 7:28 am
(@agwalsh)
Posts: 100
Estimable Member
Topic starter
 

At least I was in the ballpark 🙂 So from the PQ menu, what should I choose? Then I'll have a go myself.. The Expanded option is not available in my version of PQ ..this is great..thank you so much!

 
Posted : 31/07/2018 8:11 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Anne,

Not sure what you mean by 'The expanded option is not available...'/

Anyway, to get the latest dates create a copy of the first query and select the name column > group by. New column name is Date, operation is Max and Column is Date. Then you can merge this query using join kind Left Outer with your first query and expand the Invoice Number and Amount.

If you work through the attached file it will show you all of the steps I took.

Mynda

 
Posted : 01/08/2018 7:46 am
(@agwalsh)
Posts: 100
Estimable Member
Topic starter
 

Went back again and figured it out 🙂 Thank you. 

 
Posted : 01/08/2018 10:54 am
Share: