Forum Discussion

olimilo's avatar
olimilo
Icon for Post Prodigy rankPost Prodigy
9 years ago
Solved

Vios are Using FILTER() with data from 2++ tables

So, I'm trying to do this measure using DAX:   Initial (NY) = CALCULATE( DISTINCTCOUNT(Vios[InsNo]) , FILTER(Vios, Violations[MG Type] = "New York") && FILTER('Scope', 'Scope'[Scope] = "Full ...
  • mattbrice's avatar
    9 years ago

    What you want is possible like this:

     

    Initial (NY) =
    CALCULATE (
        DISTINCTCOUNT ( Vios[InsNo] ),
        FILTER ( Vios, Violations[MG Type] = "New York" ),
        FILTER ( 'Scope', 'Scope'[Scope] = "Full Scope" )
    )

    separate CALCULATE setfilter arguments are "AND" together.