Forum Discussion

dataguy4u's avatar
dataguy4u
New Member
8 years ago
Solved

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

  • 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")

     

     

     

1 Reply

  • dilumd's avatar
    dilumd
    Impactful Individual

    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")