0

I have a medal column, there are 4 different values in the medal column gold, silver,bronze, and NA, I don't want to count the NA column in the calculated field in tableau

I want to do something like this

Count(Medals(not including NA))/count(Medals)

adadadad
  • 71
  • 1
  • 7

2 Answers2

0

if you want to exclude NA, Try to use this:

IF ISNULL([medal: NA]) THEN [medal] END

nb. if table name is medal, and expression are gold, silver,bronze, and NA

then you can use count

alem10
  • 35
  • 1
  • 5
0

One solution is

SUM(INT([Medal] <> β€œNA”)) / COUNT(β€œ*”)
Alex Blakemore
  • 11,301
  • 2
  • 26
  • 49