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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.