PowerBI MicrosoftAzureConsumptionInsights-将查询更改为超过2个月

我正在使用PowerBI分析来自Azure的成本数据。我通过以下方式建立直接连接并提取数据:打开PowerBI |获取数据在线服务| microsoft Azure消费见解(Beta,但是可以,但是,我只能看到两个月的数据,理想情况下,我希望看到6个。经过大量搜索,其他用户的普遍共识似乎是使用高级编辑器通过添加“ optionalParameters”并指定月份数来调整查询。我遇到了其他一些用户遇到相同问题但建议不起作用的站点。我希望这里有人可以指出正确的方向。

我将发布查询字符串,并在该字符串下方列出包含我已经尝试过的建议的URL。

let
    enrollmentNumber = "xxxxxxx",optionalParameters = [ numberOfMonth = 6,dataType="DetailCharges" ],Source = microsoftAzureConsumptionInsights.Tables(enrollmentNumber,optionalParameters),usagedetails = Source{[Key="usagedetails"]}[Data],#"Parsed JSON" = Table.TransformColumns(usagedetails,{{"Tags",Json.Document}}),#"Expanded Tags" = Table.ExpandRecordColumn(#"Parsed JSON","Tags",{"environment","application","costCenter","owner"},{"Tags.environment","Tags.application","Tags.costCenter","Tags.owner"})
in
    #"Expanded Tags"

https://community.powerbi.com/t5/Desktop/Azure-consumption-insights-get-more-than-two-month-usage-details/td-p/541413 https://community.powerbi.com/t5/Desktop/Power-BI-desktop-and-getting-multiple-months-in-one-row-from-the/td-p/50585 https://community.powerbi.com/t5/Desktop/Extend-the-Azure-consupmtion-data/td-p/444508 https://docs.microsoft.com/en-us/power-bi/desktop-connect-azure-consumption-insights

ttc123 回答:PowerBI MicrosoftAzureConsumptionInsights-将查询更改为超过2个月

我打开了一个案例,现在已经解决了这个问题。

首先-必须将PowerBI的版本升级到最新版本。我升级到的版本是:版本:2.75.5649.961 64位(2019年11月)

第二个-Microsoft Azure消费见解正在逐步淘汰,并由Azure成本管理代替。这不适用于“消费”见解。

我能够通过以下方式增加月份数:

  1. 获取数据| Azure | Azure成本管理
  2. 填写必填信息,指定月数。

Get Data Dialog

本文链接:https://www.f2er.com/2969476.html

大家都在问