简体   繁体   English

如何从tableau中的一个表中找到最大值并从另一个返回一个值

[英]How to find the maximum value from a table in tableau and return a value from the other

I'm a beginner in Tableau, it would be great if someone could help me with these queries.我是 Tableau 的初学者,如果有人可以帮助我解决这些问题,那就太好了。

I want to find the maximum value from the amount table and want to return the mode of payment that the maximum amount belongs to.我想从金额表中找到最大值,并想返回最大金额所属的支付方式。

最高金额的退货方式

Similarly, if I need to find the sum of amounts of a particular mode, how do I do that?同样,如果我需要找到特定模式的数量总和,我该怎么做?

特定模式的总和(例如 - UPI)

For first part use this T/F CF as filter for TRUE对于第一部分,使用此 T/F CF作为TRUE的过滤器

SUM([AMOUNT]) = 
MAX(
{FIXED [MODE] : sum([Amount])}
)

OR if these aren'e aggregated already或者,如果这些已经聚合

[AMOUNT] = 
{FIXED [MODE] : MAX([Amount])}

For second one use SUM([AMOUNT]) in view alongwith Mode .对于第二个,在视图中使用SUM([AMOUNT])Mode In order to let me explain me better you have to upload some sample/fake data (not screenshot) that can be copied and worked upon in Tableau.为了让我更好地解释我,您必须上传一些可以在 Tableau 中复制和处理的样本/假数据(不是屏幕截图)。 Good Luck.祝你好运。

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

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