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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
tomperro
Helper V
Helper V

Unable to get accurate count using CALCULATE COUNTROWS with Filter

I am having an issue getting a total count of a measure.

 

I am trying to get a total count of my measure in NC Follow Up Required = "YES"

NC_Follow_Up_Required =
IF( AND([Date_of_Last_NC] = [Date_of_Last_NC_Follow_Up], DATEDIFF([Date_of_Last_NC],TODAY(),DAY) >30 ), "YES", IF([Date_of_Last_NC_Follow_Up] > [Date_of_Last_NC],"NO",""))

Count_of_NC_Follow_Up_Required_YES =
CALCULATE(COUNTROWS(Contact), FILTER(Contact, [NC_Follow_Up_Required]="YES"))  

 

In the first table, you can see there are 6 rows where NC Follow Up Required = YES but in the second table, it is only showing 4.
It looks like my DAX is not counting the duplicate name, Johnson.

 

Employee information comes from my contact table and NC Test number comes from another table.

tomperro_0-1698768921112.png

 

3 REPLIES 3
audreygerred
Super User
Super User

Could you share your pbix file so I can try to assist with troubleshooting?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Unfortunately it contains data that I can not share 😞

@audreygerredUnfortunately it contains data that I can not share

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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