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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
tomperro
Helper III
Helper III

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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