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

Be 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

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.