Avatar of Software Engineer
Software Engineer
 asked on

Pointing Power BI Report to a Different Company

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

Avatar of undefined
Last Comment
Software Engineer

8/22/2022 - Mon
Suhas .

Hi, Can you please provide more details?
Software Engineer

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

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.

    Source = Dynamics365BusinessCentral.ApiContents("SANDBOX_TRAININGANDUAT", "Name of Company", null),
    #"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"}})
    #"Renamed Columns"
Software Engineer

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
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.
ask a question