Skip to main content

Notifications

Announcements

No record found.

Getting Custom with Excel Refreshable Reports

Hello Community,

Over the last few weeks we have been diving into the Excel Refreshable Reports available for GP.

These reports are awesome, but sometimes you just need something special, something created just for your company and its reporting needs, something… Custom.  

This leads us to:

How do I create Custom Excel Refreshable Reports?

Overall creating the reports are easy if you only want data from a single SQL Table, or you have a view already in SQL. Here is an example using a view, although any SQL script should work:

  1. Open Excel
  2. Click the ‘Data’ tab at the top
  3. Click the ‘Get Data’ button
  4. Select ‘From Database’
  5. Then ‘From SQL Server Database’

 pastedimage1596643881932v2.png

  1. This will open the following window, click the ‘Advanced options’ link to show the SQL statement that we will be running:

 pastedimage1596643904226v3.png

  1. For the Server, we will want to use the full server name, as if you were connecting using SSMS. For example, this is what shows in SSMS, and is exactly what I put in for the Server:

 pastedimage1596643929611v4.png

  1. For the database, it is required that you put in the company Database you want to use. Without this, you will be unable to enter in the SQL statement below. You can work around this, but you only need to do this if you want to run the same command against different databases. I, instead, recommend using different connections (i.e. do these steps for each database and script). I am using the default TWO company.

  2. Under the Advanced fold is were we are putting the SQL script we want to use. You can pull in entire tables, or even use views. There are many members of the GP community that have great views that you can use here. To use a view simply run it against the company to create the view, then run a select against it like it is a table. I am using the default ‘popWorkTransactions’ view.

  3. Once everything looks good, click OK. Here is what my example ended up looking like:

 pastedimage1596643956390v5.png

  1. This will pull up a window that will show a test pull of data. Make sure you are getting some data that you expect. In the bottom right is a load button, you can click the button to create a new sheet with all of the data coming in, or can click the arrow and then the ‘Load To…’ option to pull the data to a location you choose like my example:

 pastedimage1596643981569v6.png

 pastedimage1596643993407v7.png

  1. Once you click Load (or OK if you clicked Load To), it should create a table with your data already populated:

 pastedimage1596644011464v8.png

At this point you are basically done, and now you can get creative with your use of the data. You can pull a bunch of tables/views into different sheets, then pull them all onto one Pivot table. Or you can filter using Excel, or sort using whatever column you want. You have the full functionality of Excel at your fingertips. Just make sure you save the Excel Workbook before you close it!

If you are interested in creating a Pivot table, you can find more information here:
https://support.microsoft.com/en-us/office/create-a-pivottable-to-analyze-worksheet-data-a9a84538-bfe9-40a9-a8e9-f99134456576

If you are interested in learning about all the settings you can setup to refresh the data, you can look at the link below. By default, the data will refresh in the background whenever you use the Refresh All button. Be aware that setting this to refresh on opening the file will increase the time it takes to open the file. That said, this is my favorite setting to use as it makes sure the user is seeing the most recent data when they open the report.
https://support.microsoft.com/en-us/office/refresh-an-external-data-connection-in-excel-1524175f-777a-48fc-8fc7-c8514b984440
 

Hopefully, this gets everyone up and running with their own Excel Reports. As a fun note, if you save these reports to the same location you used when publishing the default reports, then they will appear within the company when you click on the Excel Reports Navigation list:

 pastedimage1596644065508v9.png
Just make sure you save them in whatever company and module folder you want them in. For example, I saved mine within TWO’s Purchasing folder.

As a note, the Dynamics GP Support Team has limited ability to assist with these custom reports once they are in Excel. As always, we will do our best. That said, the community may be a better resource when it comes to Pivot Tables, or other Excel magic.
https://support.microsoft.com/en-us/help/850201/guidelines-that-microsoft-support-professionals-use-to-determine-when

I hope this blog series has helped point out one of the better tools that comes with GP, along with some of the awesome power that comes from leveraging other parts of the Microsoft Ecosystem. As always, feel free to toss your questions in the comments below.

Happy customizing!

 

The Excel Reports blog series:

Starting off with Excel Refreshable Reports
Getting more Advanced with Excel Refreshable Reports
Getting Custom with Excel Refreshable Reports

Comments

*This post is locked for comments

  • Ian Grieve Profile Picture Ian Grieve 22,782
    Posted at
    Beat, I have the folder location working fine; you need to exactly mirror the naming structure of the deployment folder for the user folder. For example, C:\Dynamics Central\Reports\Excel Reports\Reports\TWO\Purchasing would have a matching user folder of C:\Dynamics Central\Reports\User Reports\Reports\TWO\Purchasing
  • Justin Sutton Profile Picture Justin Sutton
    Posted at
    Hi Beat, I agree, it looks like that location is not pulling into the Nav Lists. I will have to look more into this, but I don't seem to remember it ever working. I will run some tests on my end, and will note the issue to Development. Thank you for your feedback!
  • Beat Bucher  GP Geek  GPUG All Star Profile Picture Beat Bucher GP Gee... 28,021 Super User 2024 Season 1
    Posted at
    Hi Justin, The Excel report deployement has one major design flaw ! When you setup in GP the Excel reports, you can specify the default report location, but also the "User location" to put modifed reports.. The thing is that GP completely ignores that folder and doesn't show the Excel reports from that folder in the navigation lists.. which makes that useless. I know it's hard to get around the fact that many admins are setting this up with the 'User Location' pointing to the %UserProfile% folder, so they don't get in the way of others.. but still, it would nice if those custom folder could also be picked up, no matter where they reside.