Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

JSON column type in Power BI Dataflow

I am using the following code to pull in data from an API in a Power BI Dataflow   Json.Document(Web.Contents("https://"&APIEnvironment&"/path/" & "?limit=100", [ Headers=[Authorization="Bearer " &...
  • edhans's avatar
    3 years ago

    No. I am not aware of any way to return embedded lists, records, etc. in a loaded dataflow. 
    This simple table:

    let
      Source = #table(
                {"ID", "Name", "City"},
                    {
                        {123, "Alice", {1.10}},
                        {456, "Bob", {100.150}}
                    }
              )
    in
      Source

    has a nested list in the third column. When that is loaded in a dataflow nothing comes through into Power BI's Power Query. it is just a blank field.

    You will need to do the expansion in the dataflow, or connect to the JSON directy from Power BI's Power Query if you want to expand it there.