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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.