how to count one column from other distinct column entries in power bi code example
Example: power bi count unique values in a column
=DISTINCTCOUNTNOBLANK('your_table'[your_column])
=DISTINCTCOUNTNOBLANK('your_table'[your_column])