简体   繁体   中英

How to convert numbers to percentage for each measure in Tableau?

I have a data set something like this:

在此处输入图片说明

And I've visualized this data set like this:

在此处输入图片说明

But now, I want to convert the number to percentage. For instance, when name is A in the price_1 section, there are 1210 X type and 2095 Y type. Instead of showing this number, I would like to have 1210/1210+2095 in X, 2095/1210+2095 in Y.

How can I do this?

You can click on Measure Values -> Quick Table Calculation -> Percent of total. Then you can modify the Compute using to make sure it's the percentage you want.

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