Notification

This article is about Looker Studio. For Looker documentation, visit https://cloud.google.com/looker/docs/intro.

Trang bạn đã yêu cầu hiện không có sẵn bằng ngôn ngữ của bạn. Bạn có thể chọn ngôn ngữ khác ở cuối trang hoặc dịch nhanh mọi trang web sang ngôn ngữ mà bạn chọn bằng cách sử dụng tính năng dịch được tích hợp sẵn trong Google Chrome.

NARY_MAX

Returns the maximum value from a list of 2 or more fields or expressions.

NARY_MAX is similar to MAX, except that it allows you to compare multiple values.

In this article:

Sample usage

NARY_MAX(Event_1, Event_2, Event_3)

Syntax

NARY_MAX(X, Y, [,Z]*)

 

Parameters

  • X, Y, Z - fields or expressions to be evaluated. 

Example 1

This example shows how you can mix fields, calculations, and literals in an NARY_MAX function:

NARY_MAX(REVENUE, (COST * 2), 10, SESSIONS))

Example 2

Suppose you want to determine the maximum sales for your 3 sales regions by date and that your data looks like this:

Date Region 1 Sales Region 2 Sales Region 3 Sales
Date 1 100 200 150
Date 2 75 130 150
Date 3 225 185 230

 

You could use the NARY_MAX function to determine the maximum sales for a given date:

Example formula Date Output
NARY_MAX(Region 1 Sales, Region 2 Sales, Region 3 Sales,) Date 1 200
Date 2 150
Date 3 230

Notes

NARY_MAX requires at least 2 arguments. At least one argument must be a field or an expression containing a field.

NARY_MAX works on numeric fields or expressions only. If you apply this function to other data types, you'll get an error. 

Thông tin này có hữu ích không?

Chúng tôi có thể cải thiện trang này bằng cách nào?
true
What's new in Looker Studio?

Learn about new features and recent changes. Looker Studio release notes live on Google Cloud.

Search
Clear search
Close search
Main menu
18311131261710782903
true
Tìm kiếm trong Trung tâm trợ giúp
true
true
true
true
true
102097
false
false