Notice: This user guide is based on the legacy connector.
We recommend using our new connectors instead, as they are easier to use and actively maintained. This legacy documentation may not be up to date.
In Speckle, data is organized into objects called Speckle Objects. These objects represent design elements, such as geometry, parameters, materials, etc. When you receive data from Speckle, they are received in the “Record” data type. The “data” column in the retrieved dataset will contain the record objects representing the Speckle objects.Each record object contains information about a specific Speckle object, including its properties, geometry, and other relevant data. The record format allows for flexibility and extensibility, as it can accommodate various types of objects and their associated data.This page shows you some basic techniques to access your data from the record objects. But remember, accessing methods is not limited to what we show here. Check Power BI documentation to learn more about it.
Most of the time, your data will have nested records. Accessing the fields of nested records is not much harder. Let’s say you have a parameters record that stores all the parameters and you want to get the value of one parameter.
Here is what you need to do if you want to expand the fields of the records in your “data” column into separate columns:
Click on the Expand icon in the column header of your “data” column. It looks like two arrows pointing in opposite directions.
A dialog box will appear, showing you the field names of the records in your column. You can select which fields you want to expand or select all of them.
Click OK. The “data” column will be replaced by new columns, each containing the values of one field from the records.
Expanding a record column may have some disadvantages:
It can increase the size of your data model if you expand a column that contains many columns or rows, which will be the case for Speckle data in most cases. Received Records will have all the properties of the source object (a lot of field names) and this can affect the memory consumption and performance of your report if you expand all.
It can miss some column names if you have different object types in your data. This is because Power BI will hard-code the column names that you select to expand, and if there is a new or different column name in the source, it will not be included in the expanded results.