Question

I have 5 columns.

SAMPLE           HIGH          MEDIUM         LOW    TOTAL

A________________5______________4______________7_____16

B________________5______________4______________7_____16

C________________5______________4______________7_____16

D________________5______________4______________7_____16

I want to be able to calculate for each sample the percentage of High Medium Low.

  • High/ total = new value
  • medium/total = new value
  • low/total=new value

How do I do this in Tableau?

No correct solution

OTHER TIPS

You can read here for more details, but the general way is to right click on the Dimensions or Measures small window and then click on Create Calculated Field.

enter image description here

When the windows opens, in your case, you'll want to create a new name for the 'New Value', and then for the Formula section you should put:

[HIGH]/[TOTAL]

Just make sure that these are recognized as floats or integers (and not strings). If you select the variables in the Fields section, you are more likely to get exactly what you want. Also, there is a preview on the right of the data type.

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top