I have a dataset in tableau where I would like to show the percent of each category.
Data
free use type date
10 5 A1 1/1/2021
20 1 A1 1/1/2021
40 2 B2 1/1/2021
60 3 B2 1/1/2021
Desired
type %
A1 50%
B2 50%
Doing
SUM( [type] ) / SUM( [type] )
However, because 'type' is a string, the calculation is not successful.
Is there a way to showcase a groupby and to display the percent?
Any suggestion is appreciated
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…