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
Anonymous
Not applicable

Checking Data for Missing or Duplicates Based on Filters

Hi,

I have a dataset with hundreds of employees. Each employee has a name, a position and a status for one of 4 tests taken, as shown below:

image.png

I want to know if any of the people, somewhere in the excel spreadsheet that is my data source, maybe have a missing value, like if there are only 3 records for that employee because Test B is missing. I also wonder if maybe somewhere in the data there is an employee with 8 records, because maybe they hold 2 positions. Is there a way to filter this to get the information I want?

 

Thank you

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

You could get it by creating the tag calculate column with EARLIER Function

https://powerpivotpro.com/2012/03/the-correct-usage-of-earlier/

tag = IF( CALCULATE(COUNTA('Table'[Name]),FILTER('Table','Table'[Name]=EARLIER('Table'[Name])))=4 ,"correct","wrong")

Best Regards,

Lin

 

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

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

You could get it by creating the tag calculate column with EARLIER Function

https://powerpivotpro.com/2012/03/the-correct-usage-of-earlier/

tag = IF( CALCULATE(COUNTA('Table'[Name]),FILTER('Table','Table'[Name]=EARLIER('Table'[Name])))=4 ,"correct","wrong")

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @Anonymous 

Not sure what you are asking. 

But you can count the number of records for each employee. Better have an ID an not use the names.

Then Calculate this count against a target number. 

Flag employees where the count <> target.

Cheers!
A

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 Kudoed Authors