Google Data Studio incorporates a multifaceted function, NARY_MIN that aids in identifying and returning the smallest value from a set of input data. Similar to MIN function, NARY_MIN stands apart by providing the ability to compare and evaluate multiple values simultaneously which enriches the data analysis process. This article will delve into the syntax, workings, and usage of this function in Google Data Studio.
The syntax of the function is an essential aspect to understand as it provides the blueprint on how to use the function.
shell
NARY_MIN(X, Y, [,Z]*)
The NARY_MIN function requires at least two input arguments and all these arguments ought to be in the same semantic type, such as all numbers. Here, X, Y denote input arguments and Z represents further optional arguments. Therefore, it's not acceptable to mix different types of data, for instance, a number with a text field or a date.
This function works by scrutinizing every input argument and comparing them to identify the smallest number. Consequently, an unaggregated dimension is returned as output by default. The vital thing to bear in mind is that at least one argument provided should be a field or an expression containing a field for the function to work.
Let's understand the usage of this function with some examples that use different sales metrics.
Suppose your Sales team has captured the sales data for three different products sold online, over a period of a week. The data includes daily sales, advertising costs, and discount given on each product. You want to track the lowest number in these metrics for each day.
shell
NARY_MIN(Daily Sales, Advertising Costs, Discount)
Imagine having a Sales data including Gross Sales, Net Sales, and Returns for each month. If you are aiming to identify the least performing metric for each month, you can leverage NARY_MIN as:
shell
NARY_MIN(Gross Sales, Net Sales, Returns)
These examples give a practical sense of how the function can be employed in various sales contexts to generate insights on underperforming areas, which can be further addressed to enhance sales performance.
While NARY_MIN offers a host of benefits, it's prudent to remain aware of its limitations:
To use NARY_MIN effectively, ensure all inputs are numerical and align with the same semantic type. Incorporating this function in your data analysis process can prove advantageous in tracking minimum performing areas, thus providing actionable insights to improve those areas.
Remember, Google Data Studio functions including NARY_MIN, provide incredible power in analyzing complex sets of data, as they enable efficient computation and comparison of multiple values across numerous areas of data. The use of this function will undoubtedly assist in enriching your data analysis and business decision-making process.
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!