DISTINCTCOUNT counts the number of unique, non-blank values in a column.
Unique States = DISTINCTCOUNT('Table'[State])
When you need to count the distinct (unique) values in a column, excluding blanks.
Go to report view
Insert a card
drag the newly created measure "DistinctCount" from the date pane into card
You will get the DistinctCount displayed in the card