Forum Discussion

imadelmouden's avatar
imadelmouden
Frequent Visitor
7 years ago
Solved

Mesure with complex filters

I am new to DAX, and I want to do a complex filter with it. The thing is, I have a table : TableA :   ID PHONE (phone number of users) TYPE_PHONE (contain either 0 or 1) VOLUME_LTE The ph...
  • Chihiro's avatar
    Chihiro
    7 years ago

    ... so you with your last edit.

     

    May be this.

    Measure =
    CALCULATE (
        DISTINCTCOUNT ( Table2[PHONE] ),
        FILTER (
            Table2,
            SUMX (
                Table2,
                IF (
                    SUM ( Table2[VOLUME_LTE] ) = 0
                        && Table2[TYPE_PHONE] = 0
                        && Table2[VOLUME_LTE] = 0,
                    1,
                    0
                )
            )
                > 0
        )
    )

     

    Using same sample table I showed before.

     

    Result: