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
dataguy4u
New Member

DAX help - marking records

Hello,

 

I have data where employees have more than one Teaching Credential.  Need to know how to create a new measure to identify those records.  Maybe a field called "More than one credital" and mark as Y one time for said employee ? This would be done in Power BI Desktop.  I'm new to DAX and been thinking of a way to mark these records.

 

Example of data below:

 

Employee ID                 Name                     Title                                 Teaching Credential
12345Teacher 1Teacher Special EDElemetry Ed K-8
12345Teacher 1Teacher Special EDSpecial ED K-12
98745Teacher 2Teacher , SubEmergency Substitute
98745Teacher 2Teacher , SubSubstitute Teacher
98745Teacher 2Teacher , SubHealth/Fitness Prim     K-12
32165Teacher 3Instructional FacilitatorEarly Childhood Education   P-3
32165Teacher 3Instructional FacilitatorElementary Ed K-8

 

Much thanks!

 

Pete

1 ACCEPTED SOLUTION
dilumd
Solution Supplier
Solution Supplier

Hi,

 

Pls tell me, Teaching Credential column is the only reason for duplicates line in your data set?

 

If so, this formula would work for you. 

More than one credital = IF(CALCULATE(COUNTROWS(Help),ALLEXCEPT(Help,Help[Employee ID                 ]))>1,"Yes","No")

 

 

 

View solution in original post

1 REPLY 1
dilumd
Solution Supplier
Solution Supplier

Hi,

 

Pls tell me, Teaching Credential column is the only reason for duplicates line in your data set?

 

If so, this formula would work for you. 

More than one credital = IF(CALCULATE(COUNTROWS(Help),ALLEXCEPT(Help,Help[Employee ID                 ]))>1,"Yes","No")

 

 

 

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.

Top Solution Authors