Forum Discussion

koorosh's avatar
koorosh
Icon for Post Partisan rankPost Partisan
4 years ago
Solved

Users who have all defined value

Hello All, The following image is a part of a Dataset. First, How to find the user or users that have all certifications. Then show the user or users with their company name in a visual table. If no user has all certifications the visual table would be blank.

Second how to find how many users have all certifications.

Third, how to find the number of users who have at least one certification and more. And their names and companies.

Fourth, how to find users with a different mixture of certifications. For instance, the users have certification A AND B AND F. or A AND C AND F. Or B AND C. Or any mixture. 

Is it possible to build a certification slicer that can use "AND" operator between certifications for a user table?

 

  • koorosh's avatar
    koorosh
    4 years ago

    Thank you Samarth, Sorry for delay. How do you think about the following DAX?

     

    User All Cert =
    VAR K =
    Countrows(filter(values('Sheet1'[Certification]),
    LEFT(Sheet1[Certification],4)="Cert"))
    Return
    IF
    (K = CALCULATE(count(Sheet1[Certification]),LEFT(Sheet1[Certification],4)="Cert",ALLEXCEPT(Sheet1,Sheet1[User])),1,0)

3 Replies

    • koorosh's avatar
      koorosh
      Icon for Post Partisan rankPost Partisan

      Thank you Samarth, Sorry for delay. How do you think about the following DAX?

       

      User All Cert =
      VAR K =
      Countrows(filter(values('Sheet1'[Certification]),
      LEFT(Sheet1[Certification],4)="Cert"))
      Return
      IF
      (K = CALCULATE(count(Sheet1[Certification]),LEFT(Sheet1[Certification],4)="Cert",ALLEXCEPT(Sheet1,Sheet1[User])),1,0)