The excel file is too large to upload and I can't figure out a way to make it small enough to keep the Power Query Active.
I have a power query in excel that pulls the information from an Access Database. It is currently only pulling the information from Access when the discrepancy type fields are filled out in the Database. I would like the Query to pull the information from the database as soon as the NCMR number field is filled out.
I did not set up these Power Queries and have very little experience with Power Queries. The person who set this up is no longer with the company.
Below are the current parameters set up.
Source: = #"NCMR Main Table-Access_Import_Headers"
Appended Query: = Table.Combine({Source, #"NCMR Main Table-Access_Import_Type1", #"NCMR Main Table-Access_Import_Type2", #"NCMR Main Table-Access_Import_Type3", #"NCMR Main Table-Access_Import_Type4", #"NCMR Main Table-Access_Import_Type5"})
Promoted Headers: = Table.PromoteHeaders(#"Appended Query", [PromoteAllScalars=true])
Changed Type: = Table.TransformColumnTypes(#"Promoted Headers",{{"NCMR Number", type text}, {"Date", type date}, {"NCMR Type", type text}, {"Part Number", type text}, {"Lot Quantity", Int64.Type}, {"Number Rejected", Int64.Type}, {"Discrepancy Type", type text}, {"Discrepancy", type text}, {"Discrepancy Qty", type text}, {"Disposition", type text}, {"Cause", type text}, {"Machine Number", type text}, {"Oper1", type text}, {"Oper2", type text}, {"Oper3", type text}, {"Oper4", type text}, {"FORMAL CAR REQUIRED?", type logical}, {"Q-220 Analysis Req?", type logical}, {"Closed?", type logical}})
Filtered Rows: = Table.SelectRows(#"Changed Type", each [Discrepancy Type] <> null and [Discrepancy Type] <> "")
There are 7 other imports with the one above. The above is the Main one that lists the Table of information from Access.
My guess would be that you can just change the last step to:
Filtered Rows: = Table.SelectRows(#"Changed Type", each [NCMR Number] <> null and [NCMR Number] <> "")
Have you tried saving is as a binary file? xlsb is smaller than xlsm and retains all macro's
Changing the name worked. However, I need to keep the conditions, so we don't have the Discrepancy types that equal zero not show up in the table. I have attached a binary spreadsheet, so hopefully you will be able to open it.
The file opens allright but the connections are invalid for us,
DataFormat.Error: 'CAR-NCMR.mdb' is not a valid path.
Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
Details:
CAR-NCMR.mdb