简体   繁体   English

如何创建一个字段以返回 Google Data Studio 表中元素的 position?

[英]How to create a field to return the position of an element in the table in Google Data Studio?

I'm trying to create a ranking, in order to return position 1, position 2, position 3 for example, but also naming the position of each element in this ranking.我正在尝试创建一个排名,例如为了返回 position 1、position 2、position 3,而且还命名了该排名中每个元素的 position。

Position Position Name名称 Pontuation标点符号
1 1个 João若昂 2000 2000
2 2个 Victor胜利者 1950 1950
3 3个 Matheus马修斯 1800 1800

With google data studio line numbering this would already be possible:使用 google data studio 行编号,这已经是可能的:

Name名称 Pontuation标点符号
1. 1. João若昂 2000 2000
2. 2. Victor胜利者 1950 1950
3. 3. Matheus马修斯 1800 1800

but when adding a filter to search for names and search for the name "Matheus" it would return as follows:但是当添加一个过滤器来搜索名称并搜索名称“Matheus”时,它将返回如下:

Name名称 Pontuation标点符号
1. 1. Matheus马修斯 1800 1800

And it would not bring with it its position in this ranking.而且它不会在这个排名中带来它的 position。 So, I would like to know how I could create a field that returns this position to create the ranking.所以,我想知道如何创建一个返回此 position 的字段来创建排名。

example in google data studio谷歌数据工作室中的示例

This can't be done in Google Data Studio because it doesn't store data and it doesn't offer a way to correlate lines as other BI tools may allow.这不能在 Google Data Studio 中完成,因为它不存储数据,也不提供其他 BI 工具可能允许的关联行的方法。 It only allows you to make simple calculations using data from the same record.它只允许您使用同一记录中的数据进行简单的计算。

But since you're using Google Sheets, you can add a column to your GSheet with the Rank information.但是由于您使用的是 Google 表格,因此您可以在 GSheet 中添加一个包含排名信息的列。 Then, just add the column to your dashboard.然后,只需将该列添加到您的仪表板。

To achieve this, you may want to use the RANK formula .为此,您可能需要使用RANK 公式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Google Data Studio 中创建计算字段过滤器? - How to create Calculated Field Filters in Google Data Studio? 如何在 Google Data Studio 中创建“过去 3 个月”的时间段 - How to create a 'past 3 months' time period in Google Data Studio 如何在 Google Data Studio 中将 Year 字段检测为 Year? - How can I make Year field detected as Year in Google Data Studio? 如何让单个控制字段控制 Google Data Studio 中的多个列? - How can I make single control field to control multiple columns in Google Data Studio? 负值的 Google 数据洞察表热图 - Google Data Studio Table Heatmap for Negative values 如何在 Google Data Studio 中显示单个日期? - How to Display a single Date in Google Data Studio? Google Data Studio URL 参数不会自动更新引用它的字段 - Google Data Studio URL Parameter not automatically updating a field that refers to it 有没有办法自定义排序 Google Data Studio 表中的记录? - Is there a way to custom sort records in a Google Data Studio table? 如何将 Postgres 数据库连接到 Google Data Studio - How to connect Postgres DB to Google Data Studio 如何在 Google BigQuery 上创建嵌套表并保持相同级别的数据聚合 - How to create a nested table on Google BigQuery and maintaining the same level of data aggregation
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM