Forum Discussion
Calculated column being cleared when loaded to powerbi.com
I thought bing mapping - or any mapping for that matter - would need a stand alone country field.... not a string that contains other info.
Looking at this page:
It seems that this format is one of the options.
- v-haibl-msft10 years ago
Microsoft Employee
Anonymous
I just downloaded the .csv files and imported Table.csv to my PBI Desktop. Everything looks OK both in Desktop and Service as below.
I’ve also uploaded my .pbix file here for reference, could you please try to publish the report from my .pbix file to your Service?
Best Regards,
Herbert
- Anonymous10 years agoNot applicable
Thanks. I would have expected it to work.
I think the probelm is that the Table.ExpandRecordColumn where the Centre field is expanded is not working properly in the service (marked "==>" below):
This is the M code:
let
Source = SharePoint.Tables("https://****************.sharepoint.com/Data"),
MasterHouseList1 = Source{[Name="MasterHouseList"]}[Content],
#"Removed Columns" = Table.RemoveColumns(MasterHouseList1,{"ContentType", "Modified", "Created", "CreatedById", "ModifiedById", "Owshiddenversion", "Version", "Path", "CreatedBy", "ModifiedBy", "Attachments", "ContentTypeID", "Picture"}),
#"Filtered Rows" = Table.SelectRows(#"Removed Columns", each ([CityOrTown] <> "NA")),
#"Merged Queries" = Table.NestedJoin(#"Filtered Rows",{"Id"},#"House Maintenance Dates",{"HouseId"},"NewColumn",JoinKind.LeftOuter),
#"Expanded NewColumn1" = Table.ExpandTableColumn(#"Merged Queries", "NewColumn", {"MaintenanceStartDate", "MaintenanceEndDate"}, {"MaintenanceStartDate", "MaintenanceEndDate"}),
#"Changed Type" = Table.TransformColumnTypes(#"Expanded NewColumn1",{{"MaintenanceEndDate", type date}}),
==> #"Expanded SupportOffice" = Table.ExpandRecordColumn(#"Changed Type", "SupportOffice", {"Centre"}, {"Centre"}),
#"Added Custom" = Table.AddColumn(#"Expanded SupportOffice", "City", each [CityOrTown] & ", England"),
#"Changed Type1" = Table.TransformColumnTypes(#"Added Custom",{{"City", type text}}),
#"Filtered Rows1" = Table.SelectRows(#"Changed Type1", each ([MaintenanceEndDate] = null) and ([DepartmentCode] <> "60"))
in
#"Filtered Rows1"If I use Centre in the following Table.AddColumn then it fails as it appears that Centre is empty.
Perhaps I'll try expanding two fields from that Record and see if that works :-)
- Anonymous10 years agoNot applicable
Expanding two fields doesn't work either.
I'm pretty sure this is an issue with the Service. How do I report that?