Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Advanced Editor Azure Cost Management Parameters

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

 

 

 

 

2 REPLIES 2
v-lid-msft
Community Support
Community Support

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,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.