Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello Everyone,
I have imported some data into PowerBi from an Azure Storage Blob. I am trying to do some transformations of the data, much of which was automated. I was able to get the advanced view below, and understand that query needs to be modified to correct the error, but how do I go about doing that?
let
Source = (Parameter1) => let
Source = Json.Document(Parameter1),
#"Converted to Table" = Table.FromRecords({Source}),
#"Expanded value" = Table.ExpandListColumn(#"Converted to Table", "value"),
#"Expanded value1" = Table.ExpandRecordColumn(#"Expanded value", "value", {"id", "userPrincipalName", "officeLocation", "assignedLicenses"}, {"value.id", "value.userPrincipalName", "value.officeLocation", "value.assignedLicenses"}),
#"Changed Type" = Table.TransformColumnTypes(#"Expanded value1",{{"@odata.context", type text}, {"@odata.nextLink", type text}, {"value.id", type text}, {"value.userPrincipalName", type text}, {"value.officeLocation", type text}, {"value.assignedLicenses", type any}})
in
#"Changed Type"
in
Source
Hi @Cepheus ,
You mean @odata.context? Change #"Changed Type" step to this:
#"Changed Type" = Table.TransformColumnTypes(#"Expanded value1",{{"@odata.nextLink", type text}, {"value.id", type text}, {"value.userPrincipalName", type text}, {"value.officeLocation", type text}, {"value.assignedLicenses", type any}})
This removes the transformation applied to non-existing column @odata.context ( {"@odata.context", type text}, )
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
101 | |
84 | |
79 | |
69 |
User | Count |
---|---|
120 | |
110 | |
95 | |
82 | |
77 |