简体   繁体   中英

Data Studio - Can you display the date of a Max Metric within a Chart?

I am working on creating a table that displays the Max Value of a metric that exists across several different dimensions. I'd like to be able to have the date that max value was recorded within the table as well. Essentially we want to know what our current "record" is and when it was reached.

If I add the "date" as a dimension, the chart then pulls in every record rather than just the max for the other dimensions.

Any thoughts on how to achieve this?

Created a Google Data Studio Report to demonstrate. One way it could be achieved is using the NARY_MAX function:

1) Create a Table
- Dimension : Date

2) Metric ( Calculated Field )
- NARY_MAX : The formula takes the MAX value in each row from the fields specified, for example (using 3 fields to demonstrate, although more or fewer fields could be used based on the use case):

 NARY_MAX(Field_1, Field_2, Field_3, Field_n)

3) Sort
- Rows per page : 1
- Sort : NARY_MAX (Field created in #2 above) in Descending order

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM