The CONCAT function follows a straightforward syntax that consists of the function name, followed by input parameters separated by commas. Expressed in a standardized manner:
It accepts two or more parameters, denoted by (X, Y [,Z, ...]). These parameters can be a mix of literal text, a field, or an expression containing at least one field. Unfortunately, you can't use aggregated fields as parameters with this function.
Utilizing the CONCAT function is relatively straightforward. You call the function by writing CONCAT(), then within the brackets, you input your parameters separated by commas. These parameters could be fields, literal text, or expressions with at least one field. Looker Studio (formerly Google Data Studio) then forms a single text by merging the parameters.
Remember, while using literal text, you must enclose it within double quotes ("") for the function to recognize it as such.
Let's step through some real-world examples illustrating the use of the CONCAT function in Google Data Studio using sales data.
Example 1: Let's say we have a dataset containing information on sales made. Each sale has a Sales Rep and Sales Product field. We can use CONCAT to provide a more seamless way to relate sales representatives with the products they sold:
This formula would output a statement like: 'Sales Rep: John Doe Product: XYZ', providing a simplified method to relate the two fields.
Example 2: Alternatively, we could be looking at sales data where we've information of sales volume and the respective month. We can use CONCAT to formulate an ‘Output’ field to make this relationship clear:
This formula gives an output like: 'In March, sales volume was 1500', making it clear when each sales volume was achieved.
Although quite resourceful, the CONCAT function does have its limits. It cannot accept aggregated fields as parameters. Additionally, the function's capability heavily relies on the accuracy and functionality of the Google Data Studio.
To get the most out of the CONCAT function, always aim at enhancing data readability and clarity. By cleverly manipulating data fields to present complex datasets in an understandable manner, CONCAT becomes a powerful tool in your data reporting and analysis arsenal.
Ultimately, a comprehensive understanding of the CONCAT function provides insight into the transformative power of Google Data Studio.
Become a Looker Studio expert
for free
Learn all the secrets of data analysis and create beautiful and effective dashboards thanks to our 30-second video courses! Join Catchr's community on YouTube.
Get more video lessonsAll your data on Looker Studio
Build Looker Studio dashboard easily with your marketing data from all platforms and track your essential KPIs! No-code integration.
Start free trial now!Optimize your data analysis
Get free Looker Studio dashboard template among a large collection of +50 stunning template! Elevate your data visualization.
Get free templates!