March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I would like to add a parameter to my Advanced Query Editor to only pull through certain GUIDs to help speed up the query, rather than filter post-import.
Can someone help me with this?
Here is my query:
let
enrollmentNumber = "100",
optionalParameters = [numberOfMonth = 12, dataType="DetailCharges"],
Source = MicrosoftAzureConsumptionInsights.Tables(enrollmentNumber, optionalParameters),
usagedetails = Source{[Key="usagedetails"]}[Data],
FilteredSubscription = Table.SelectRows(usagedetails, each [SubscriptionGuid] = "c4a100c4-3570-4cc7-ac66-74c612ff2345" or [SubscriptionGuid] = "4d39f909-5c7b-457b-bafd-05cf260f9b78" or [SubscriptionGuid] = "b339e80c-cc8b-4d77-a764-4bbbfcfc6475" or [SubscriptionGuid] = "59688e37-0cbb-4517-a68f-db0f966fe877"),
in
FilteredSubscription
Hi @Anonymous ,
Sorry for our late reply. First of all, we suggest you to hide the detail in your query if it contain any confidential information.
Could you please try to include the SubscriptionGUID into the optionalParameters to verify if it can accept this parameter?
let
enrollmentNumber = "Number",
optionalParameters = [numberOfMonth = 12, dataType="DetailCharges", SubscriptionGuid = "c4a100c4-3570-4cc7-ac66-XXXXXXXXXXXX"],
Source = MicrosoftAzureConsumptionInsights.Tables(enrollmentNumber, optionalParameters),
usagedetails = Source{[Key="usagedetails"]}[Data]
in
usagedetails
Please also refer to this document about this connector: https://docs.microsoft.com/en-us/power-bi/desktop-connect-azure-consumption-insights
Best regards,
Hi @v-lid-msft thanks for getting back to me.
Don't worry there's nothing sensitive in the code.
The SubscriptionGuid parameter isn't working. There are no syntax errors, it is simply ignored. The date parameter is still working.
Jemma
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
126 | |
77 | |
59 | |
56 | |
42 |
User | Count |
---|---|
184 | |
106 | |
84 | |
59 | |
48 |