Components
What is a component?
Components are custom data sets where you can combine your data and perform transformations to reuse the result along your apps using a single block.
It's the perfect way to simplify and enhance your data. Components can help you to:
- Reuse repetitive or complex SQL queries
- Merge different data into a single source
- Hide unnecessary columns for your data apps
- Filter and curate the data with transformations
- Add aggregations as a new columns that are automatically updated
The possibilities are endless for simplifying your data and the lives of the people who use your data.
Creating components
Go to the Apps list
Click on Components in the top left
You will see the list of components
Click on Create New to add a new component
Now you will see the canvas of your component
The canvas of a component allows you to add data sources, transformations and variables. You will see a new block added called Output. All components need a final result which is what the ouput block will receive.
Remember to connect a result to the output block otherwise the component will appear empty
Considerations
The query engine mode of the component is inherited from the data sources used in it. If all the sources used to build the component are in Source mode, the component will be in Source mode.
Any change in your component will be immediately reflected in the project where it is used.
The output of the component is the result of the block connected to the Output block.
Using components
Once you have connected a result to your component you are ready to use it.
Go to the Apps list
Enter on an app or create a new one
Open the Block Gallery
You will see a Components section in the first position. Here you can find the components created in your workspace.
Drag and drop to the Canvas
Done! You can use your component with curated data as a source