Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How do i solve for Employee Count is linked to Department, Section and Sub Section

Hi Guys, i need help as you can see the Total Actual for every row is the same 3606. Is there any way to solve it where the figures is according to the department, section and subsection just l...
  • v-chenwuz-msft's avatar
    4 years ago

    Hi Anonymous ,

     

    The mostly is the relationship between these table. you should make sure that these tables have active relationship between them, then you can just use the measure which looks like you provided.

    Or please modify the measure like the code below:

    MJK Employee Count =
    COUNTROWS(
        FILTER(
            ALL( 'MJK Total Employees' ),
            'MJK Total Employees'[Department]
                = SELECTEDVALUE( 'this table Employees'[Department] )
                && 'MJK Total Employees'[Section]
                    = SELECTEDVALUE( 'this table Employees'[Section] )
                && 'MJK Total Employees'[Sub Section]
                    = SELECTEDVALUE( 'this table Employees'[Sub Section] )
        )
    )
    

     

    The link to your pbix is not accessible.

     

    Best Regards

    Community Support Team _ chenwu zhu

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.