简体   繁体   中英

How to divide the count of 2 different values within the same 1 column in Tableau?

在此处输入图像描述 在此处输入图像描述 在此处输入图像描述

I am trying to divide the data above, that is in the same column within my raw data. The one column name is "Status". I split it under this column into 2 separate columns within Tableau.

How would I create a calculation to divide T & D by each other? For an example, I would like to divide 166/1523, 155/1535, etc.

How do I differentiate between these 2 under the same column "Status".

SUM (IF [Status] = "T" THEN [Your Measure] END)
/
SUM (IF [Status] = "D" THEN [Your Measure] END)

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