DAX code
Uniqueness % =
DIVIDE(DISTINCTCOUNT('Sales'[KeyColumn]), COUNTROWS('Sales'))
Expresses distinct values in a column as a percentage of total rows, a basic data quality check.
Type your table and column names once. Every measure below updates.
Uniqueness % =
DIVIDE(DISTINCTCOUNT('Sales'[KeyColumn]), COUNTROWS('Sales'))
Replace 'Sales'[KeyColumn] with the column you're checking for uniqueness.
Browse all 175 measures in the Power BI DAX Measures Library, or search the library for something similar to Uniqueness %.