Beste Invantive,
Het valt me op na monitoren met Invantive cloud monitoring live / history, dat als ik de rapport dataset in PowerBi Desktop of Cloud refresh, voor 1 query in PowerQuery meerdere regels / calls zichtbaar worden in Invantive cloud monitoring. Is dat correct? Of kan de PowerQuery query nog efficiënter worden geschreven? Of zijn er instellingen te finetunen in PowerBi.
PowerQuery query:
let
Source = OData.Feed("https://bridge-online.invantive.com/exact-online/odata4", null, [Implementation="2.0"]),
#"TransactionLinesBulk" = Source{[Name="ExactOnlineREST.FinancialTransaction.TransactionLinesBulk@eol",Signature="table"]}[Data],
Filter = Table.SelectRows(#"TransactionLinesBulk", each [Division] = DivisionID),
Filter1 = Table.SelectRows(#"Filter", each [JournalCode] = "70"),
Filter2 = Table.SelectRows(#"Filter1", each Date.IsInPreviousNDays([Date], 14)),
#"Filtered Rows" = Table.SelectRows(Filter2, each [InvoiceNumber] <> null),
#"Filtered Rows1" = Table.SelectRows(#"Filtered Rows", each [Item] <> null),
#"Filtered Rows2" = Table.SelectRows(#"Filtered Rows1", each [Quantity] <> null),
#"Removed Columns" = Table.RemoveColumns(#"Filtered Rows2",{"AmountFC", "AmountVATBaseFC", "AmountVATFC", "Asset", "AssetCode", "AssetDescription", "CostUnit", "CostUnitDescription", "Created", "Creator", "CreatorFullName", "Currency", "CustomField", "Document", "DocumentNumber", "DocumentSubject", "DueDate", "EntryID", "EntryNumber", "ExchangeRate", "ExternalLinkDescription", "ExternalLinkReference", "ExtraDutyAmountFC", "ExtraDutyPercentage", "FinancialPeriod", "FinancialYear", "ID", "JournalDescription", "LineType", "Modified", "Modifier", "ModifierFullName", "Notes", "OffsetID", "OrderNumber", "PaymentDiscountAmount", "PaymentReference", "Project", "ProjectCode", "ProjectDescription", "ProjectWBS", "ProjectWBSDescription", "SerialNumber", "ShopOrder", "Status", "Subscription", "SubscriptionDescription", "TrackingNumber", "TrackingNumberDescription", "Type", "VATCode", "VATCodeDescription", "VATPercentage", "VATType", "YourRef", "CreatedUtc", "ModifiedUtc", "DivisionShortName", "DivisionCompanyCoCNumber", "DivisionCompanyIBANNumber", "DivisionCompanyRSINNumber", "DivisionCompanyVATNumber", "DivisionCompanyWageTaxNumber", "DivisionName", "DivisionLabel", "DivisionCompanyName", "DivisionOwnerCompanyName", "DivisionOwnerCompanyNumber", "DisplayDocumentsUrl", "GLAccountType", "GLAccountBalanceSide", "GLAccountBalanceType", "GLAccountRevalueCurrency", "GLAccountSearchCode", "GLAccountTypeDescription", "GLAccountUseCostCenter", "GLAccountUseCostUnit", "GLAccountVatCode", "CostCenter", "CostCenterDescription", "GLAccountCode", "GLAccountDescription"}),
#"Changed Type" = Table.TransformColumnTypes(#"Removed Columns",{{"Date", type datetimezone}}),
#"Sorted Rows1" = Table.Sort(#"Changed Type",{{"InvoiceNumber", Order.Descending}, {"LineNumber", Order.Ascending}})
in
#"Sorted Rows1"
Invantive Cloud Monitoring:
Bij voorbaat dank

