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
mvbenz
Frequent Visitor

Incremental Updates on Dataset Issue

Hi all!

 

I have a dataset that queries and API. It pulls in the data, does a few stems to convert the feed to a table and a bit of fomatting after that. I upload it and hit refesh and it refreshed fine but this is the first refresh.

 

After that I get this error: 

Data source error:The '<pii>Column1</pii>' column does not exist in the rowset.

 

I started to troublshoot by removing steps form the bottom up and once I removed the step Convert to Table which creates Column1 the error dissappears.

 

So now it reads the API data, and pulls in the list but I can't convert the list to a table to expand the data and massage it in Power Query.

 

Anyone else experience this? Only thing I can think of is the convert to table is assigning a different name to the column but I can't see that online.

 

Code:

let
Source = Json.Document(Web.Contents("https://app.cloudability.com/", [RelativePath="api/1/reporting/cost/run", Query=[
filters = "category3==12345,category3==23456,category3==34567",
dimensions = "vendor,usage_family,usage_type,account_identifier,account_name,category3,date,vendor_account_name,tag11,tag2",
metrics = "total_amortized_cost",
start_date = Date.ToText(DateTime.Date(RangeStart)),
end_date = Date.ToText(DateTime.Date(RangeEnd))
], Headers=[Authorization=APIKey]])),
results = Source[results],

Everything from here up works fine


This is the line causing the issue:

#"Converted to Table" = Table.FromList(results, Splitter.SplitByNothing(), null, null, ExtraValues.Error),

 

The rest of the data massaging
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"vendor", "usage_family", "usage_type", "account_identifier", "account_name", "category3", "date", "vendor_account_name", "tag11", "tag2", "total_amortized_cost"}, {"vendor", "usage_family", "usage_type", "account_identifier", "account_name", "category3", "date", "vendor_account_name", "tag11", "tag2", "total_amortized_cost"}),
#"Renamed Columns" = Table.RenameColumns(#"Expanded Column1",{{"vendor", "Vendor"}, {"usage_family", "Usage Family"}, {"usage_type", "Usage Type"}, {"account_identifier", "Account Identifier"}, {"account_name", "Account Name"}, {"category3", "Cost Center"}, {"date", "Date"}, {"vendor_account_name", "Subscription Name"}, {"tag11", "Databricks Cluster"}, {"tag2", "Application"}, {"total_amortized_cost", "Total Amitorized Cost"}}),
#"Changed Type" = Table.TransformColumnTypes(#"Renamed Columns",{{"Subscription Name", type text}, {"Date", type datetime}, {"Cost Center", type text}, {"Account Name", type text}, {"Account Identifier", type text}, {"Databricks Cluster", type text}, {"Application", type text}, {"Usage Family", type text}, {"Vendor", type text}, {"Usage Type", type text}, {"Total Amitorized Cost", type number}})
in
#"Changed Type"

1 ACCEPTED SOLUTION
mvbenz
Frequent Visitor

Ok so after posting this it gave me and idea and I solved my issue. Hope this helps other with this issue.

 

In my code above I looked up the options for Table.FromList and ends up the first null in the line is the optional column name

 

#"Converted to Table" = Table.FromList(results, Splitter.SplitByNothing(), null, null, ExtraValues.Error),

 

So I changed null to 'Records'

 

#"Converted to Table" = Table.FromList(results, Splitter.SplitByNothing(), {"Records"}, null, ExtraValues.Error),

#"Expanded Records" = Table.ExpandRecordColumn(#"Converted to Table", "Records", {"vendor", "usage_family", "usage_type", "account_identifier", "account_name", "category3", "date", "vendor_account_name", "tag11", "tag2", "total_amortized_cost"}, {"vendor", "usage_family", "usage_type", "account_identifier", "account_name", "category3", "date", "vendor_account_name", "tag11", "tag2", "total_amortized_cost"}),

 

Table.FromList - PowerQuery M | Microsoft Docs

 

 

View solution in original post

1 REPLY 1
mvbenz
Frequent Visitor

Ok so after posting this it gave me and idea and I solved my issue. Hope this helps other with this issue.

 

In my code above I looked up the options for Table.FromList and ends up the first null in the line is the optional column name

 

#"Converted to Table" = Table.FromList(results, Splitter.SplitByNothing(), null, null, ExtraValues.Error),

 

So I changed null to 'Records'

 

#"Converted to Table" = Table.FromList(results, Splitter.SplitByNothing(), {"Records"}, null, ExtraValues.Error),

#"Expanded Records" = Table.ExpandRecordColumn(#"Converted to Table", "Records", {"vendor", "usage_family", "usage_type", "account_identifier", "account_name", "category3", "date", "vendor_account_name", "tag11", "tag2", "total_amortized_cost"}, {"vendor", "usage_family", "usage_type", "account_identifier", "account_name", "category3", "date", "vendor_account_name", "tag11", "tag2", "total_amortized_cost"}),

 

Table.FromList - PowerQuery M | Microsoft Docs

 

 

Helpful resources

Announcements
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.