cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
heytherejem Post Patron
Post Patron

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
Community Support
Community Support

Re: Advanced Editor Azure Cost Management Parameters

Hi @heytherejem ,

 

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.
heytherejem Post Patron
Post Patron

Re: Advanced Editor Azure Cost Management Parameters

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 Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors