Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

How to use ISINSCOPE in matrix?

I have an AD group table:   AD group Name Emp Xyz Mary 1 Xyz Paul 2 Service Paul 2 IT3 Paul 2 IT3 Tim 3 IT3 Juana 4 IT3 Karla 5 IT3 Tatiana 6    ...
  • v-yueyunzh-msft's avatar
    3 years ago

    Hi, Anonymous 

    According to your description, you want to  see BLANK in the departments. Right?

    Here are the steps you can refer to :
    (1)This is my test data which is the same as yours:

    We need to create a relationship between two tables:

     

    (2)We can create a calculated column in Multi-terminal tables:

    de_name = RELATED('Sheet1'[Department])

    (3)We can create a measure :

    Count = IF(ISINSCOPE('Sheet1'[Department]),BLANK(), SUMX( DISTINCT('Sheet2'[de_name]),1))

    (4)Then we put the measure in the visual and the field we need like this  and we will meet your need:

    If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

     

    Best Regards,

    Aniya Zhang

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