A client recently asked if they could add a date filter to one of the standard Microsoft Dynamics GP Excel reports. Naturally, the answer was No and Yes.
No, because you have no control how
Yes, because once the report is available you can make a copy and modify it to suit your needs.
For example, look at the TWO Accounts Transaction Default Excel report for open GL transactions. The report lists 22,319 rows covering transaction dates 12/31/2013 to 12/1/2018. The report and its associated odc file can be modified to show only transactions for 2014.
- Make a copy of the report TWO Account Transactions Default.xlsx and rename the copy to TWO Account Transactions Default for 2014.xlsx.
- Open TWO Account Transactions Default for 2014.xlsx.
- If you get the Security Warning “Data connections have been disabled”, click the Options button and select “Enable this content”, click OK. You will see over 22,000 rows of data.
- Go to the Data tab, click the Connections icon in the Connections section.
- In the upper pane, the odc connection “TWO Account Transactions Default” is highlighted, click the Properties button and select the Definition tab
- In the Connection name field, modify the connection name to “TWO Account Transactions Default for 2014”
- In the Command Text block, after the line -> from Account Transactions <- add the command -> where [TRX Date] > '12/31/2013' and [TRX Date] < '1/1/2015' <-. (See below for the entire Command Text.)
- Click the “Export Connection File” button to create a new odc file and name it TWO Account Transactions Default for 2014 and save in the same folder as the other TWO Financial odc files. Click OK to close the Connection properties window.
- Click Close on the Workbook Connections window
- Verify the TRX date is between 1/1/2014 and 12/31/2014. If necessary, click the Refresh All icon in the Connections section.
- Save and close the spreadsheet
- When you open the spreadsheet and refresh, only transactions from 2014 will be present.
A few things to keep in mind:
- This example was done in Excel 2007 and Dynamics GP2010, other versions may have slightly different menu options.
- Always use a copy of the original reports, don’t modify the originals.
- For one time use, just filtering the data within Excel is probably easier, however, if you need the filtered data numerous times, create a new report.
- If you haven’t set up the Excel reports, the setup window for GP2010 is at (Microsoft Dynamics GP > Tools > Setup > System > Reporting Tools Setup – use Excel Reports tab). In GP 10, you have to use the ODC Connections setup first and then the Excel Reports setup.
- Don’t be like the TWO company and have 6 open fiscal years
The new Command Text with date filter
where [TRX Date] > '12/31/2013' and [TRX Date] < '1/1/2015'
order by [Journal Entry]
RSM has been implementing
By Claude Frymark, RSM – Microsoft Dynamics GP Specialist