Call Us Today! 1-800-895-3254
[email protected]
Microsoft Training
Integent offers a comprehensive portfolio of training services, with an ideal fit for every organization. Ranging from general courses to custom solutions, we have you covered.
Learn About TrainingSee Full list of Courses
Microsoft Consulting
Integent provides consulting services for a variety of Microsoft applications including Microsoft Project, Project Online, Project for the Web, Dynamics 365, and Microsoft SharePoint.
Learn About Consulting
Microsoft Support
Microsoft technologies set the standard for project portfolio management, business applications, collaboration, and more. Integent has flexible solutions to support every customer.
Learn About Support
Microsoft Project
Integent has the knowledge and experience to help design and deploy a solution to help your organization manage projects and resources more effectively
Learn More About Microsoft Project
Microsoft Dynamics 365
Integent can help you nsure business continuity with a custom cloud solution that connects sales, service, finance, and operations teams to deliver results.
Learn More About Dynamics 365
Microsoft SharePoint
SharePoint is Microsoft’s collaboration platform that is a place where team members can communicate, exchange data, share files and much more.
Learn More About Microsoft SharePoint
Microsoft Power Platform
Consisting of Power BI, Power Apps, Power Automate and Power Virtual Agents, the Microsoft Power Platform helps streamline and improve business functions.
Learn More About The Power Platform
About Integent
Integent was founded in 2009 on the principles of building long-lasting relationships with customers, exceeding expectations, and providing outstanding customer service. 

We’re dedicated to providing a customized solution backed by our knowledgeable team of Microsoft experts.
Discover What Makes Us Different
GSA Schedule
Integent is GSA Schedule Contract holder. A GSA schedule helps simplify selling our services to government customers.
Read More Here
News
Stay informed on Integent’s latest company updates and other important industry information. Our passion is customer success.
Read The Latest News
Videos
Learning new software doesn’t have to be difficult with our library of dozens of free training videos. Our video training always has something new.
Browse Our Training Video Library
Blog
Our industry experts share best practices and common pitfalls to avoid, in order to get the most out of your technology solutions.
Discover More

December 11, 2015

Use Power Query to Shrink Odata Requests Down to Size

Most of the reports I create have a time element… Which client used the most project hours last year? ….. How many hours are my QA people scheduled to work next month?  Without that time framework, the information is less valuable.

Time phased reports do, however, have an unfortunate side. The tables we must use to get this information are huge, often requiring 20 minutes or more to refresh, or a PowerPivot layer to accept more rows of data than a standard spreadsheet.

When we create Project Online reports, we use Odata.  Luckily, Microsoft’s Power Query is able to import data from Odata and create filters to limit the data we access.

The first thing to do is add Power Query to Excel. Power Query is a free add-in.

Under the File menu, Options/Add-Ins, select COM add-ins.

image

Select Power Query and click Add.

Now, let’s go get some data.

Open Excel and click on the Power Query tab.

Click on From Other Sources/From Odata Feed.

image

Enter the URL for your PWA’s Odata.  This is your PWA’s URL plus /_api/projectdata.

image

At this point, you will probably be asked to re-sign in to access the data.  Select Organizational login.

You will see a list of Odata tables.  Select the time-phased table you want to filter.  For me, this is often the AssignmentTimePhasedDataSet table. This table has planned and actual work, per day, for all assignments. Yes, it is quite large.

image

The first thing we will do is fairly simple.  If you table has a lot of columns, use the Choose Columns option to select only the columns you need. TIP: never remove ID columns, as these are frequently used to create relationships between tables.

image

The next step is the most important one.  You are able to use Date/Time Filters to select data according to how close it is to today’s date.

To do this, click on the down arrow at the top of the TimeByDay column. Select Date/Time Filters.

image

Often, I use the “is in the previous” or “is in the next” filters. This will make a huge difference in the size of the table you pull.

TIP:  Sometimes you can’t restrict the data using this technique.  For instance, if you need to make monthly data available for all projects throughout their life, this filter is not useful.

image

Notice that the View/Advanced Filter actually shows you the filter that you’ve created using these GUI tools.

 

© Copyright 2023 | Integent.com | All Rights Reserved
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram