When I use the Advanced Editor within Power BI's Power Query to point my report to a different company within the ERP application, I'm told that the company name does not exist. It does.
Any ideas?
Power BI
Last Comment
Software Engineer
8/22/2022 - Mon
Suhas .
Hi, Can you please provide more details?
Software Engineer
ASKER
What do you need, beyond what I initially mentioned?
Cédric Tielemans
What do you mean with "a different company within the ERP application"? What is your source ( e.g. dataflow, csv, database, ... ). Maybe post the first lines of your Mcode in which you show the source/transformation steps and what you change when you say "different company" ( e.g. other workspace, ... ).
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Software Engineer
ASKER
Below is what appears in Advanced Query in PQ. I cannot divulge the formal name of our client. So, "Name of Company" is appropriately the name of the company that I edited. Previously, a different company name was there. Once I changed the name, PQ gave me the error message that I mentioned earlier. The ERP application is Microsoft Dynamics 365 Business Central, a SAAS solution.
let Source = Dynamics365BusinessCentral.ApiContents("SANDBOX_TRAININGANDUAT", "Name of Company", null), SANDBOX_TRAININGANDUAT = Source{[Name="SANDBOX_TRAININGANDUAT"]}[Data], #"Name of Company" = SANDBOX_TRAININGANDUAT{[Name="Name of Company"]}[Data], WebServices = #"Name of Company"{[Name="WebServices"]}[Data], purchaseDocumentLines_table = WebServices{[Name="purchaseDocumentLines",Signature="table"]}[Data], #"Renamed Columns" = Table.RenameColumns(purchaseDocumentLines_table,{{"description", "Line Item Description"}, {"quantity", "Qty Ordered"}, {"unitCost", "Unit Cost"}, {"amount", "Original Comittment"}, {"outstandingQuantity", "Quantity Outstanding"}, {"outstandingAmount", "Line Value Outstanding"}, {"number", "Number"}, {"expectedReceiptDate", "Expected Arrival"}}) in #"Renamed Columns"
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.