AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register

Acumatica, Power Query, and Power Pivot

January 18, 2014 by Tim Rodman

I wasn’t able to spend much time on direct Acumatica learning this week, but I did get to entertain an Excel reporting idea that I think would be very powerful if I can get it to work.

First, a word about Power Pivot. I began using Power Pivot early last year and have become a big fan. At my company, we now do a lot of our reporting in Power Pivot. Recently, over the past few months, I have been attending the Cleveland Excel User Group which focusses on Power Pivot and is organized by a guy named Rob Collie. Rob is the most vocal Power Pivot voice on the planet. If you haven’t heard of Power Pivot, Rob has a nice overview on his blog. He also wrote a book on Power Pivot which does a great job of introducing the Power Pivot formula language (called DAX). Rob has a rare gift for writing about technical stuff in an entertaining way.

Microsoft is structuring their whole BI strategy around Power Pivot and they are adding components to the “Power” family. One of these components is Power Query. Now, Excel has had data connections for a while. You can use data connections by going to Data -> Get External Data on the Excel ribbon. Here is a screenshot from the latest version of Excel (Excel 2013).
2014-01-21_005044

Power Query is like a revamp of the Excel data connection feature. Actually, the end result of using Power Query is that an Excel data connection still gets created, but Power Query makes it MUCH easier while giving you A LOT more functionality. You can download Power Query for free here. When it installs, it will show up on the Excel ribbon like this:
2014-01-21_005359

There are some interesting options in the From Other Sources menu drop-down which include SharePoint, Email (Exchange only currently), Active Directory, and Facebook. Microsoft continues to add features to Power Query so I would expect this list to continue to grow.
2014-01-21_005652

Now, you might ask, “what does all this have to do with Acumatica?” Well, I’m glad you asked. In the most recent version of Acumatica (4.1), an Excel Connectivity feature was introduced. This feature allows you to export the results of an explore query to Excel without losing the live link back to Acumatica. During the export to Excel, Acumatica creates an Excel data connection which allows you to refresh Excel with live Acumatica data by simply clicking the Refresh All button on the Data ribbon.
2014-01-21_010716

Now you might ask, “what does this have to do with Power Query?” Great question! Power Query has the ability to connect to web pages and extract the data that is currently being displayed in tables on those web pages.

For example, you could connect to this Wikipedia page (http://en.wikipedia.org/wiki/List_of_United_States_cities_by_population) to bring the list of largest US cities into Excel using the From Web button in Power Query. Once you do this, you have created a link to the webpage. Now, if Wikipedia ever updates the data in the table on that webpage, a simple click of the Refresh All button in Excel will instantly grab the current contents of that table and bring them into Excel.

Why not just use the Excel Connectivity feature that Acumatica worked so hard to develop? What’s the big deal about Power Query? The reason to use the From Web button in Power Query rather than the old From Web button under Data -> Get External Data on the Excel ribbon is that Power Query provides much more functionality. You can remove columns, filter, group, insert calculated columns, etc. all before the data even comes into Excel. Power Query has it’s own language so you can do even more, but I haven’t looked into it too much yet. Also, the Excel Connectivity feature loads the Acumatica data into your Excel file, while Power Query gives you the option to load the data directly into the Power Pivot data model by checking the Load to Data Model box. I hope to write a future power about the benefit of bringing the data into Power Pivot rather than into a normal Excel worksheet.
2014-01-21_015523

The Excel Connectivity feature that was recently introduced in Acumatica version 4.1 utilizes the old Excel data connection From Web feature. When you open an Excel file that was exported from an explore query in Acumatica, you can go to Data -> Connections on the Excel ribbon to see the Excel data connection that Acumatica creates during the export. I tried exporting the Account Summary explore screen to Excel and the Data -> Connections screen looks like this:
2014-01-21_012611

 

Clicking the Properties… button brought me to this screen:
2014-01-21_012656

 

I then clicked the Definition tab…
2014-01-21_012710

 

and finally the Edit Query… button. A login prompt appears and I entered my Acumatica credentials. Don’t forget to enter both your username and the company that you want to connect to with an @ symbol in between like this:

 

2014-01-21_012936

 

Now, for some reason, I get a The webpage cannot be found error. However, I am able to refresh the Excel file so something must be working. This puzzles me, but more on that later.

 

2014-01-21_013209

 

I can click the disk icon in the upper right next to the Options button to save the data connection web query definition to my desktop as a .iqy file. I then open the file using Notepad to see the details of the data connection definition:
2014-01-21_013442

 

And this is where I get stuck. I think that I should be able to take the http://localhost/AcumaticaERP/Export/ExcelQuery.axd?companyid=F100%20Examination URL and paste it into the Power Query From Web feature like this:
2014-01-21_013606

 

but I get the following 404 error:
2014-01-21_013659

 

I actually had an exchange with a very helpful Microsoft employee named Curt on the Microsoft forum:
http://social.technet.microsoft.com/Forums/en-US/40154a3d-1cf1-4329-9e36-fd8bee49bce2/power-query-and-acumatica?forum=powerquery

He pointed out that res://ieframe.dll/navcancl.html# portion before the URL in the data connection definition file looks funny.

I also tried pasting the http://localhost/AcumaticaERP/Export/ExcelQuery.axd?companyid=F100%20Examination URL into my Chrome web browser, but I get a You can’t be here right now!!! error which seems similar to me to the 404 error that Power Query gives.

So, basically I’m stuck because I don’t understand the Excel Connectivity feature well enough and I’m wondering if someone out there can help me out.

My next step will be to see if I can get myself into the Acumatica forum to get help on this issue.

I definitely think that the combination of Acumatica, Power Query, and Power Pivot would be great for reporting.

Filed Under: Acumatica Learning Tagged With: Acumatica, Acumatica Blog, Acumatica Training, Microsoft Excel, Power BI, Power Pivot, Power Query

Comments

  1. George says

    October 31, 2015 at 12:35 pm

    I think you should keep this blog alive, and in your learning curve with acumatica, you should dedicate one hour or two, blogging about that learning experience.

    • Tim Rodman says

      November 1, 2015 at 12:48 am

      Thanks for the comment George. Look for a post this coming Wednesday for my thoughts on what to do moving forward.

  2. Gabriel Michaud says

    January 21, 2014 at 6:19 pm

    BTW – have you considered simply starting from an exported inquiry, and then building your PowerPivot from this Excel table?

    • timrodman says

      January 22, 2014 at 10:20 pm

      Gabriel,

      You make a good point about building Power Pivot directly from the Excel worksheet table. However, here are some of the reasons why I would like to use the Power Query method instead:

      1. Choosing columns. Power Query allows me to choose which columns I want. Maybe I only want three out of fifteen available columns and I don’t want to make my Excel file larger than it needs to be.
      2. Filtering. I can filter the data before it comes into Excel. Maybe I’m connecting to an Explore screen that has data for 2010 through 2013, but I only care to bring in the 2013 data. Power Query allows me to apply the filter before the data comes in, again reducing my Excel file size. Now, I could call IT and ask them to add a parameter to the Explore screen, but they’re probably busy and I would have to wait for them to get to it. Also, it would affect all users and other users might not want the parameter added. Power Query enables me as a user to build self-service BI, empowering me to conduct analysis without having to wait to go through the IT bottleneck.
      3. Merge. Maybe I have one Explore screen that has customer sales dollars and another Explore screen that has attributes about that customer like primary salesperson. In traditional Excel, I would have to bring in both sets of data and do a bunch of VLOOKUP formulas to associate the customer attributes with the customer sales dollars. Power Query allows me to link customer sales dollars to customer attributes without writing VLOOKUP formulas and bring the data in as one table. This is a much faster and more efficient query with a smaller resulting data set size. There is a lot of potential with merge since Power Query can pull data from a variety of sources. Maybe I want to merge sales data with temperature data (do I sell more in hot or cold weather?) or household income by zip code data (is our product more of a luxury good or a necessity?). Power Query will let me do that. Lots of possibilities here.
      4. Power Pivot Compression. Power Query can feed the data directly into Power Pivot in Excel 2013, eliminating the need to also store the data in the Excel worksheet. Power Pivot is much more efficient at storing large volumes of data. I did a test where I pasted the word “Acumatica” down 500,000 rows and across 5 columns in an Excel 2013 worksheet, formatted as a table. The resulting file size was 9.443 MB. I pasted the same data into Power Pivot and the resulting file size was .123 MB. If I had to bring that data into an Excel 2013 worksheet first, then point it to Power Pivot, the data would need to be stored in both places. I tried that with my sample data and the file size was 9.567 MB (not surprisingly, basically 9.443 + .123). So, it would be much better to have the data stored only in Power Pivot (.123 MB) instead of in both the Excel worksheet and Power Pivot (9.567 MB). The Power Pivot version file size is less than 2% of the Excel worksheet version file size, but the amount of data stored is the same.

      I’m sure there are more reasons, but I’m still getting myself familiar with Power Query and the possibilities that it opens up. Power Query is a free new feature in Excel and I think that Acumatica is poised to take advantage of it better than most other ERP systems because Acumatica is web-based, giving users a secure way to access their data remotely. Also, Acumatica makes the Explore screens available as data connections so you can take advantage of the business logic built into them without having to take the old-fashioned approach of re-inventing the business logic (hopefully accurately) by going straight to the SQL tables when using Excel to query data.

  3. Gabriel Michaud says

    January 21, 2014 at 6:18 pm

    It’s more complex than just copy-pasting the connection string; there are parameters getting posted (screen name, filter and I don’t know if Excel will allow you to set these properties from the UI. Rename xlsx file to .zip, extract it and have a look at connections.xml; you will see what i’m talking about…

    I will ask developer who did this functionality to have a look at your blog post; maybe he won’t be able to provide a solution but that may give us ideas how to improve it in the future 🙂

    Regards,
    Gabriel Michaud
    Director of Product Management
    Acumatica

    • timrodman says

      January 22, 2014 at 10:16 pm

      Thanks for the comment Gabriel! I took a look at the connections.xml file and I can see what you mean. There are a lot of parameters. That would be awesome if you can find out more info from a developer.

      There is a really long string that looks like this:
      %7B%22company%22%3A%22F100%20Examination%22%2C%22parameters%22%3A%7B%22BranchID%22%3A%7B%22view_name%22%3A%22Filter%22%2C%22display_name%22%3A%22Branch%3A%22%2C%22is_default%22%3Atrue%2C%22value%22%3A%22XYZ%22%7D%2C%22LedgerID%22%3A%7B%22view_name%22%3A%22Filter%22%2C%22display_name%22%3A%22Ledger%3A%22%2C%22is_default%22%3Atrue%2C%22value%22%3A%22ACTUAL%22%7D%2C%22FinPeriodID%22%3A%7B%22view_name%22%3A%22Filter%22%2C%22display_name%22%3A%22Financial%20Period%3A%22%2C%22is_default%22%3Afalse%2C%22value%22%3A%22122013%22%7D%2C%22AccountClassID%22%3A%7B%22view_name%22%3A%22Filter%22%2C%22display_name%22%3A%22Account%20Class%3A%22%2C%22is_default%22%3Atrue%2C%22value%22%3Anull%7D%2C%22SubCD%22%3A%7B%22view_name%22%3A%22Filter%22%2C%22display_name%22%3A%22Subaccount%3A%22%2C%22is_default%22%3Atrue%2C%22value%22%3Anull%7D%2C%22ShowCuryDetail%22%3A%7B%22view_name%22%3A%22Filter%22%2C%22display_name%22%3A%22Show%20Currency%20Details%22%2C%22is_default%22%3Atrue%2C%22value%22%3A%22False%22%7D%7D%2C%22filter_name%22%3A%22Saved%20Filter%22%2C%22filters%22%3A%7B%7D%2C%22data%22%3A%7B%22screen_id%22%3A%22GL.40.10.00%22%2C%22view_name%22%3A%22EnqResult%22%2C%22parameters%22%3A%5B%7B%22view_name%22%3A%22Filter%22%2C%22items%22%3A%5B%7B%22name%22%3A%22BranchID%22%2C%22is_key%22%3Afalse%2C%22value%22%3A%22XYZ%22%7D%2C%7B%22name%22%3A%22LedgerID%22%2C%22is_key%22%3Afalse%2C%22value%22%3A%22ACTUAL%22%7D%2C%7B%22name%22%3A%22FinPeriodID%22%2C%22is_key%22%3Afalse%2C%22value%22%3A%22122013%22%7D%2C%7B%22name%22%3A%22AccountClassID%22%2C%22is_key%22%3Afalse%2C%22value%22%3Anull%7D%2C%7B%22name%22%3A%22SubCD%22%2C%22is_key%22%3Afalse%2C%22value%22%3Anull%7D%2C%7B%22name%22%3A%22ShowCuryDetail%22%2C%22is_key%22%3Afalse%2C%22value%22%3A%22False%22%7D%5D%7D%5D%2C%22filters%22%3A%5B%5D%2C%22fields%22%3A%22AccountID%2CType%2CDescription%2CLastActivityPeriod%2CSignBegBalance%2CPtdDebitTotal%2CPtdCreditTotal%2CSignEndBalance%2CConsolAccountCD%2CAccountClassID%22%7D%7D" url="http://localhost/AcumaticaERP/Export/ExcelQuery.axd?companyid=F100%20Examination

      I looked up the translations for the percentage characters and found this:

      %20 = space
      %22 = "
      %2C = ,
      %3A = :
      %5B = [
      %7B = {
      %7D = }

      I then applied those translations to the really long string to come up with this (I indented to make it easier to read). You can definitely tell that there are a lot of parameters getting passed.

      {
        "company":"F100 Examination",
        "parameters":
        {
          "BranchID":
          {
            "view_name":"Filter",
            "display_name":"Branch:",
            "is_default":true,
            "value":"XYZ"
          },
          "LedgerID":
          {
            "view_name":"Filter",
            "display_name":"Ledger:",
            "is_default":true,
            "value":"ACTUAL"
          },
          "FinPeriodID":
          {
            "view_name":"Filter",
            "display_name":"Financial Period:",
            "is_default":false,
            "value":"122013"
          },
          "AccountClassID":
          {
            "view_name":"Filter",
            "display_name":"Account Class:",
            "is_default":true,
            "value":null
          },
          "SubCD":
          {
            "view_name":"Filter",
            "display_name":"Subaccount:",
            "is_default":true,
            "value":null
          },
          "ShowCuryDetail":
          {
            "view_name":"Filter",
            "display_name":"Show Currency Details",
            "is_default":true,
            "value":"False"
          }
        },
        "filter_name":"Saved Filter",
        "filters":{},
        "data":
        {
          "screen_id":"GL.40.10.00",
          "view_name":"EnqResult",
          "parameters":
          [
          {
            "view_name":"Filter",
            "items":
            [
            {
              "name":"BranchID",
              "is_key":false,
              "value":"XYZ"
            },
            {
              "name":"LedgerID",
              "is_key":false,
              "value":"ACTUAL"
            },
            {
              "name":"FinPeriodID",
              "is_key":false,
              "value":"122013"
            },
            {
              "name":"AccountClassID",
              "is_key":false,
              "value":null
            },
            {
              "name":"SubCD",
              "is_key":false,
              "value":null
            },
            {
              "name":"ShowCuryDetail",
              "is_key":false,
              "value":"False"
            }
            ]
          }
          ],
          "filters":
          [
          ],
          "fields":"AccountID,Type,Description,LastActivityPeriod,SignBegBalance,PtdDebitTotal,PtdCreditTotal,SignEndBalance,ConsolAccountCD,AccountClassID"
        }
      }

By using this website, you agree to our Terms of Use (click here)
Building Generic Inquiries & Pivot Tables

Online Members

 No online members at the moment

Recent Blog Posts

  • EP 161: Arline Welty – Evaluate Acumatica with YOUR DATA before you buy (Podcast) January 12, 2026
  • EP 160: How long does it take an Automation Schedule to run in Acumatica (Podcast) November 7, 2025
  • EP 159: Mark Safran – Smartsheet Dashboards with Acumatica data (Podcast) October 29, 2025
  • EP 158: Garrett Rochell – Acumatica Upgades, especially with the Modern UI (Podcast) October 4, 2025
  • acuCONNECT 2025 – Visualizing Inventory Balance $ and Service Level % TOGETHER September 19, 2025

Recent Forum Posts

  • Brynn Rutherford

    Can't export GI's to excel that contain the FATrans DAC after upgrade to 2025 R1 in less than 25 min

    Hi, We have a Fixed Asset Generic Inquiry that combin...

    By Brynn Rutherford , 3 days ago

  • Lunar Windbloom

    RE: Feeling Stuck on Making a Sandbox of our Database

    @timrodman @toonsix Thank you! I need to figure out why...

    By Lunar Windbloom , 1 week ago

  • Tim Rodman

    RE: Attribute Input Mask

    Regular Expressions are a standard Linux thing and you ...

    By Tim Rodman , 1 week ago

  • Tim Rodman

    RE: Feeling Stuck on Making a Sandbox of our Database

    Ya, if you can't get the size down by deleting the snap...

    By Tim Rodman , 1 week ago

  • Tim Rodman

    RE: What Triggers a Customization to need a Restart?

    @tlaird self-hosting totally makes sense to me for peop...

    By Tim Rodman , 1 week ago

  • Tim Rodman

    RE: Invoice subreport for line-level tax breakdown not tieing to taxes subtotal

    It's not really an Acumatica problem huh; it's a math p...

    By Tim Rodman , 1 month ago

  • Rob Neal

    Invoice subreport for line-level tax breakdown not tieing to taxes subtotal

    We have a customer with a modified SO invoice form that...

    By Rob Neal , 1 month ago

  • Tim Rodman

    RE: Generic inquiry with information from Audit history(CT301000)

    @graemelm Just pulled it in as a Custom DAC fed by the ...

    By Tim Rodman , 2 months ago

  • Tim Rodman

    RE: Importing Acumatica User Roles / User Security Permissions from Excel

    @astra-mathis thank you for the detailed instructions. ...

    By Tim Rodman , 2 months ago

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2026 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.