简体   繁体   中英

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.

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

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 . 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. Good Luck.

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