Forum Discussion

demonfc's avatar
demonfc
Microsoft Employee
7 years ago
Solved

Formula help

In need of help writing a formula where I can get a number of the customers my employees have helped. The formula would output the number of times an employee helped the same customer if they helped the same customer numerous times. The column would look like column 3. 

Employee NameCustomer Namecount of assistance
EmpAAbel4
EmpBJohn5
EmpCDerek1
EmpDAbel1
EmpBJohn5
EmpFJohn2
EmpBJohn5
EmpHDoug1
EmpIChris1
EmpEChris2
EmpGChris1
EmpEChris2
EmpGJohn1
EmpCChris1
EmpBAbel1
EmpHDerek1
EmpAAbel4
EmpBJohn5
EmpAAbel4
EmpFJohn2
EmpBJohn5
EmpAAbel4

 

Any and all help is greatly appreciated. 

Thank You

  • demonfc

     

    try with

     

    Column =
    CALCULATE (
        COUNTROWS ( Table1 ),
        ALLEXCEPT ( Table1, Table1[Employee Name], Table1[Customer Name] )
    )
    

2 Replies

  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    Community Champion

    demonfc

     

    try with

     

    Column =
    CALCULATE (
        COUNTROWS ( Table1 ),
        ALLEXCEPT ( Table1, Table1[Employee Name], Table1[Customer Name] )
    )
    
  • v-piga-msft's avatar
    v-piga-msft
    Resident Rockstar

    Hi demonfc,

     

    The solution of Zubair_Muhammad could solve your problem.

     

    If you have solved the probelm, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

     

    If you still need help, please feel free to ask.

     

    Best  Regards,

    Cherry