简体   繁体   中英

Showing absolute and percentage values in Tableau

I want to show both absolute and percentage value in a single view in the form of a matrix. In the below view I am trying to add one more column showing values as percentages of total

Got hint here but not able to replicate: Tableau - Both count and Percentage in Measure Values

在此处输入图像描述

The data is like this

在此处输入图像描述

can any one please suggest!

Not that difficult. I recreated a data like yours,

在此处输入图像描述

Follow these steps

  • Add slide on rows
  • Add number of records in text on marks card
  • Add table calculation on this field -> percent of total . The view will look like this

在此处输入图像描述

  • Notice a small triangle in 'no of records' field. That indicates that it is table calculation

  • Add number of records field once again to text. ( Tip: Double click the field number of records to add it to view directly )

在此处输入图像描述

  • Reorder as you like

在此处输入图像描述

or with totals

在此处输入图像描述

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