In order to quantify the number of unique entries in one of the table columns in Power BI, the New Measure option can be employed alongside the DISTINCT COUNT function. Follow the instructions below to do it:
- Run the application on your PC and open the Data view or Report view in the Navigation pane.
- On the right, locate your table, which is displayed under Fields, and right-click on the table.
- Choose a New Measure.
In the formula bar, enter the following DAX formula:
DistinctValueCount = DISTINCTCOUNT('TableName'[ColumnName])
- Replace 'TableName' with the actual name of your table.
- Replace [ColumnName] with the name of the column whose distinct values you want to count.
Once the measure is created, you can place it on a visual such as a card or a table to view the measured result.
This means that you shall find the number of unique (distinct) entries in that column.