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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PHenderson
New Member

New column for like all rows of duplicate in column A if value appears in column C

Good afternoon, thank you in advance for any suggestions. 

I have a dataset for employee names and training courses they have completed or not.

Column A is a list of employee numbers, B is course names, and C is completed status.

 

I need a new column D to show the employee as Success or Fail. Success is that all courses are completed (ie. for employee 1, if any "Not complete" appears in any row where Column A has '1', column D would show 'Fail' for each of those rows.
Likewise in the example below, employee 3 would be a 'Success'.

 

PHenderson_0-1688045717479.png

 

Many thanks

3 REPLIES 3
some_bih
Super User
Super User

Hi @PHenderson  add new column Success of Fail = IF (<Your table name>[Complete Status]="Not complete" , "Fail", "Success") 

Kudos if this help





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

Proud to be a Super User!






Hi, thanks for your suggestion, but I don't think I was clear enough. I'd need 'Fail' in column D for each row for that employee if even one of the rows for that employee has 'Not Complete' in column C. 
- Essentially, employee is listed as fail if they haven't completed each of the 5 courses.

 

Thanks

Hi @PHenderson create measure Success or Fail as below.

Mark my post as a solution and give kudos if this help you!

 

Success or Fail =
VAR _calculate_not_complete_status=
CALCULATE(
    DISTINCTCOUNT(Sheet1[Complete Status]),
    Sheet1[Complete Status]="Not Complete"
)
VAR _Result=
IF(_calculate_not_complete_status=BLANK(),"Success","Fail")
RETURN _Result

 

some_bih_0-1688054900675.png

 





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

Proud to be a Super User!






Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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