简体   繁体   English

Data Studio - 您可以在图表中显示最大指标的日期吗?

[英]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.

相关问题 如何在 Google Data Studio 中显示单个日期? - How to Display a single Date in Google Data Studio? 在 Google Data Studio 中更改指标格式 - Change metric format in Google Data Studio 在 AWS cloudwatch 仪表板中,我可以 select 绘制指标的所有维度吗 - in AWS cloudwatch dashboard, can i select to chart all dimensions of a metric 如何在同一 Google Data Studio 图表上添加多个时间维度? - How can I add Multiple Time dimensions on the same Google Data Studio chart? Google Data Studio饼图JSON格式? - Google Data Studio pie chart JSON format? 在表中显示一个 Metric 列,然后是 Dimension 列,然后再显示一个 Metric 列 - Display in a table a Metric column, and then a Dimension column, and then a Metric column again (SQL)您如何 select 一个最大浮点值以及查询中的其他数据类型值? - (SQL) How do you select a max float value along with other datatypes values within a query? 如何在 Vega 图表代码表中使用 Data Studio 绑定? - How to use Data Studio bindings in a Vega chart code table? Google Data Studio 条形图比较多个指标占总数的百分比 - Google Data Studio bar chart comparing multiple metrics as % of the total AWS Lightsail 指标图“无可用数据” - AWS Lightsail Metric graphs "No data available"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM