Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
alexBL
Regular Visitor

Count distinct discrepancy

I'm seeing a different number when doing a count distinct on orderID in my data.

 

I have a filter of year (2018) and in my data I get this number 1 Then when I visualize this with a card using the same filtering I get 1984, here is what I'm doing on the card: 2

 

I have no filter on the page or anywhere else, any ideas why the number is slightly different? the 2,017 number is the correct number, so somewhere along with the the visualization is losing some records

3 REPLIES 3
Anonymous
Not applicable

@alexBL 

 

I'll give you a piece of good advice. Please never rely on the automatic summarization feature of PBI. Always, and I really mean ALWAYS, create your own stand-alone measures.

Anonymous
Not applicable

Hi @alexBL ,

Whether the value of field order_id is unique or not in whole table? Could you please provide some sample data in your model and applied fields in your visual(situation 1 ) in order to make troubleshooting? Thank you.

Sales_Date order_id status
11/1/2020 ord1 1
11/2/2020 ord2 1
11/3/2020 ord3 1
11/4/2020 ord4 1
11/6/2020 ord1 2
11/7/2020 ord2 2
11/9/2020 ord1 3

Best Regards
Community Support Team _ Rena Ruan
If this post helps, then please consider Accept it as the solution to help the other members find it more.

Fowmy
Super User
Super User

@alexBL 

Select the card visual and click on the Filter Button on the header and check what filters affect the visual.

Fowmy_0-1605899518262.png

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors