SCENARIO
User wants to create a Workbook for their Purchase Orders (POs) and they wants to identify the latest Vendor Bill date for each PO as it may contain multiple Vendor Bills.
For example a Purchase Order dated April 1, 2024 may have the following Vendor Bills associated to it:
Vendor Bill #1 | Date: April 26, 2024
Vendor Bill #2 | Date: May 1, 2024
User wants to show May 1, 2024 only in the workbook results.
SOLUTION
Create a Dataset
1.) Click Analytics
2.) Go to Datasets > New Dataset
3.) Select Transaction
4.) Add the following Criteria:
Transaction (Record List) > Type (Fields List) = Purchase Order
Related Transactions - Next (Record List) > Transaction (Record sublist) > Type (Fields List) = Bill
5.) In the DataGrid (Columns with results) add:
Related Transactions - Next (Record List) > Transaction (Record sublist) > Type (Fields List)
Related Transactions - Next (Record List) > Transaction (Record sublist) > Date (Fields List) - Rename this to Bill Date
6.) Rename and Save the Dataset
Create a Workbook
1.) In the Dataset, click Create New Workbook
2.) Select Pivot
3.) Add the Transaction (This is the Purchase Order) as Rows
4.) Drag Bill Date to Measures and set it to Max
5.) Also add the Purchase Order date - set it also to Max
6.) Refresh and save the workbook
In the example above, Purchase Order had 2 Vendor Bill and the result displayed May 1, 2024 which is the latest Bill Date of PO #53
Hope this helps!