[英]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.创建了一个Google Data Studio 报告来进行演示。 One way it could be achieved is using the NARY_MAX function:
实现它的一种方法是使用NARY_MAX函数:
1) Create a Table
1)创建表
- Dimension : Date-维度:日期
2) Metric ( Calculated Field )
2)指标(计算字段)
- 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 :该公式从指定的字段中获取每行中的最大值,例如(使用 3 个字段进行演示,但可以根据用例使用更多或更少的字段):
NARY_MAX(Field_1, Field_2, Field_3, Field_n)
3) Sort
3)排序
- Rows per page : 1-每页行数:1
- Sort : NARY_MAX (Field created in #2 above) in Descending order-排序:NARY_MAX(在上面#2 中创建的字段)按降序排列
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.