Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 216047

How to include more FILTER() in a DAX formula

$
0
0

 

I have the following measure that works properly.

 

NoDelivPGDistrDPL =
CALCULATE (
    COUNTAX ( ZCSDLV; ZCSDLV[c1] );
    DISTINCT ( ZCSDLV[c1] );
    FILTER ( ZCSDLV; ZCSDLV[Cod1] = "149" );
    FILTER ( ZCSDLV; ZCSDLV[Org1] = "MDCS" );
    FILTER ( ZCSDLV; ZCSDLV[Pae1] = "CN" )
    )

 

Now I need to include other FILTER() as showed below but it returns an empty value

 

NoDelivPGDistrDPL =
CALCULATE (
    COUNTAX ( ZCSDLV; ZCSDLV[C1] );
    DISTINCT ( ZCSDLV[C1] );
    FILTER ( ZCSDLV; ZCSDLV[Cod1] = "149" );
    FILTER ( ZCSDLV; ZCSDLV[Org1] = "MDCS" );
    FILTER ( ZCSDLV; ZCSDLV[Pae1] = "CN" );
    FILTER ( ZCSDLV; ZCSDLV[Pae1] = "MX" );
    FILTER ( ZCSDLV; ZCSDLV[Pae1] = "AR" );
    FILTER ( ZCSDLV; ZCSDLV[Pae1] = "RU" )
)

I tried to use COUNTROWS instead of COUNTAX  and filtering "CN" "MX" "AR" "RU" before [cod1] and [Org1] and I got always an empty values.

 

 

I know it should be easy but I did not understand how to apply a multiple filter in this case.

 

Could you kindly indicate to me where is the mistake'

 

Thanks a lot


Viewing all articles
Browse latest Browse all 216047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>