Forum Discussion

xhulioberberi's avatar
xhulioberberi
Frequent Visitor
3 years ago
Solved

Filter the data using multiple values in different tables.

Hello guys, thank you very much for your work here it is very helpfull for all of us. I have been working a while with a project to filter data between different tables using different values.  I h...
  • v-yadongf-msft's avatar
    v-yadongf-msft
    3 years ago

    Hi xhulioberberi ,

     

    Please try following DAX to create a measure:

    DistinctCount = CALCULATE(DISTINCTCOUNT('Table2'[Activity]),FILTER(ALL('Table2'),'Table2'[ID] = SELECTEDVALUE('Table2'[ID])))

     

    The result you want:

     

    Best regards,

    Yadong Fang

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