This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi All,
I have a dataset similar to the below.
| Date | ID | Fail Reason |
| 01/01/2021 | 1 | Too big |
| 01/02/2021 | 1 | Too small |
| 02/01/2021 | 2 | Incorrect |
| 03/02/2021 | 3 | Too big |
Column 'ID' is marked as a text field. I am trying to do a distinct count of column 'ID' which reffering to the above dataset should return 3.
Putting the column 'ID' into a card visual and summarizing to Distinct Count is returning 4 and summarizing to Count is returning 4.
Any ideas as to why I am not seeing the desired 3 answer?
Solved! Go to Solution.
@Anonymous , Refer @Arul solution. Also, check do you have some space around the other 1. Use trim and lean in power query to clean ID column
Power Query Trim and Clean : https://youtu.be/NRYPsCnS0w4
@Anonymous , Refer @Arul solution. Also, check do you have some space around the other 1. Use trim and lean in power query to clean ID column
Power Query Trim and Clean : https://youtu.be/NRYPsCnS0w4
Hi @Anonymous ,
I am getting the correct value while using the sample dataset with which you were provided. I have used Count (Distinct) option.
Thanks,
Arul
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 25 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 50 | |
| 30 | |
| 24 | |
| 23 |