Forum Discussion

bernate's avatar
bernate
Helper III
10 months ago
Solved

Calculate Other Trained Employees

Hello! I have 2 tables: Training and Employees. They are connected on Employee ID with a many to one relationship (many employee ID in Training table to 1 employee ID in Employee table) ...
  • MasonMA's avatar
    10 months ago

    Hi, if it is meant to return the number of distinct employees that completed the same training, you can try this measure, 

    _Other Trained =
    CALCULATE(
        DISTINCTCOUNT('Training'[Employee ID]),
        'Training'[Training Status] = "Complete",
        FILTER(
            'Training',
            'Training'[Training No.] = MAX('Training'[Training No.])
            && 'Training'[Training Name] = MAX('Training'[Training Name])
        )
    )