Forum Discussion
olimilo
Post Prodigy
9 years agoVios 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 ...
- 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.
mattbrice
Solution Sage
9 years agoWhat 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.
- olimilo9 years ago
Post Prodigy
Thank you! I'll check if I got the correct numbers and get back to this