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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors