PowerQuery and NAV?
                
                    Lgoo                
                
                    Member Posts: 45                
            
                        
            
                    Hi,
i've got a Table with about 6 million records. This table/page is published with ODATA, so i could load it with PowerQuery in Excel. First i want to add some filters to the query, but adding filters results in loading the hole table data into PowerQuery. This takes some hours..
I see that the filtering on date fields is not working correctly. Powerquery loads all Records from Dynamics NAV and filters them after loading.
How can i load only a preview and not the hole table into excel, so i can add some more filters that the query would only return some tousend records?
Thanks
                
                i've got a Table with about 6 million records. This table/page is published with ODATA, so i could load it with PowerQuery in Excel. First i want to add some filters to the query, but adding filters results in loading the hole table data into PowerQuery. This takes some hours..
I see that the filtering on date fields is not working correctly. Powerquery loads all Records from Dynamics NAV and filters them after loading.
How can i load only a preview and not the hole table into excel, so i can add some more filters that the query would only return some tousend records?
Thanks
0                
            Answers
- 
            6 million records should not be a problem, if you delete not required columns. What are the Query Settings? Load to worksheet = On0
 - 
            Yes worksheet is on, i tryied it also with off. It makes not much different when i create a Query in Dynamics NAV with only 6 rows based on G/L Entry Table.0
 - 
            Then perhaps use Power BI Desktop instead? It's Query Editor would only load more records when you scroll down.0
 - 
            With Power BI its the same behavour when i put a filter on Posting Date. It loads hundreds Mbyts into Power BI. But this cannot be, becouse i filter on 1 day...0
 - 
            I just tried it (using Excel 2016) from the Navigator window where you choose xxx$G_L Entry do not select Load but Edit and the use the Column Filter on Posting Date. It only loaded the resulting records into Excel. What version are you on?0
 - 
            Thanks for trying, but it looks like you connecting directly to the SQL Server becouse you write the table "xxx$G_L Entry". I need to connect to the Data via ODATA Feed. I create a Webservice based on a query in NAV an publish it.0
 - 
            instead of exposing the page as ODATA, why not build a Query object in NAV so that you can prefilter the data set?0
 - 
            Becouse the user needs to compare different years. But if ODATA with powerquery is so unusable slow and cannot load at least a million records, its nothing for productiv environment...0
 - 
            Hi Lgoo,
it sounds strange to me that loading a couple of million records takes hours. What is the infrastructure? Is the service tier in a LAN or WAN? What is the max page size for OData of the service instance?
Filtering on Odata-feeds should work with date-fields as well, as described here: http://www.navida.eu/filter-nav-odata/
Does that help?
Best regards,
Jut0 
Categories
- All Categories
 - 73 General
 - 73 Announcements
 - 66.7K Microsoft Dynamics NAV
 - 18.7K NAV Three Tier
 - 38.4K NAV/Navision Classic Client
 - 3.6K Navision Attain
 - 2.4K Navision Financials
 - 116 Navision DOS
 - 851 Navision e-Commerce
 - 1K NAV Tips & Tricks
 - 772 NAV Dutch speaking only
 - 617 NAV Courses, Exams & Certification
 - 2K Microsoft Dynamics-Other
 - 1.5K Dynamics AX
 - 323 Dynamics CRM
 - 111 Dynamics GP
 - 10 Dynamics SL
 - 1.5K Other
 - 990 SQL General
 - 383 SQL Performance
 - 34 SQL Tips & Tricks
 - 35 Design Patterns (General & Best Practices)
 - 1 Architectural Patterns
 - 10 Design Patterns
 - 5 Implementation Patterns
 - 53 3rd Party Products, Services & Events
 - 1.6K General
 - 1.1K General Chat
 - 1.6K Website
 - 83 Testing
 - 1.2K Download section
 - 23 How Tos section
 - 252 Feedback
 - 12 NAV TechDays 2013 Sessions
 - 13 NAV TechDays 2012 Sessions