Share via

Will Unique include the null's count in column profiling in Power BI desktop?

2026-01-17T18:16:52.07+00:00

Just have a question on column profiling in Power Query editor

Number Text

1 B

3 C

0 B

4

null A

2 C

5 A

This is my table and column profiling shows
Number

Count7 Count7 Error0 Empty1 Distinct7 Unique7 Empty string1 Min Max5
Text

Count7 Count7 Error0 Empty1 Distinct4 Unique1 Empty string1 Min Max C As a result nulls are included in both distinct and unique am i right?


Moderator: Moved from Community Center | Discuss the Q&A site | Get started on Q&A

Community Center | Not monitored
0 comments No comments

3 answers

Sort by: Most helpful
  1. kagiyama yutaka 3,605 Reputation points
    2026-02-03T10:32:34.9066667+00:00

    hello Shri Gomathivalli Thangappatham,

    yeah, I’ve run into this a few times myself… the profiling numbers can look a bit odd when u’ve got nulls in the column.

    in my experience, Power Query treats null like any other value during profiling, so it ends up counted in both distinct and unique unless u filter it out first.

    it throws people off the first time, but what u’re seeing there lines up with how PQ handles it.

    Was this answer helpful?

    0 comments No comments

  2. Erland Sommarskog 134.7K Reputation points MVP Volunteer Moderator
    2026-01-17T18:27:16.4366667+00:00

    A better place to ask questions about Power BI is https://community.powerbi.com/t5/Forums/ct-p/PBI_Comm_Forums

    Was this answer helpful?


  3. AI answer

    2026-01-17T18:16:58.0266667+00:00

    In Power BI's column profiling, the counts for distinct and unique values typically do not include null values. The distinct count refers to the number of different values present in the column, while the unique count refers to values that appear only once. Nulls are generally considered as non-values and are not counted in these metrics. Therefore, if your profiling shows distinct and unique counts that include nulls, it may be due to how the data is being interpreted or displayed in your specific scenario.

    For your table, it seems that the counts are showing some discrepancies, and it would be advisable to verify the data types and ensure that nulls are being handled correctly in your profiling setup.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.