Forum Discussion

malguera's avatar
malguera
Frequent Visitor
8 years ago
Solved

Need help with measures combining two tables

Hello Team,   Need some help, I've been trying to sort this out using different combinations of DAX Formulas and I'm still missing a couple of what should be simple measures but for some reason it ...
  • Zubair_Muhammad's avatar
    8 years ago

    malguera

     

    May be you can add another FILTER expression inside CALCULATE

     

    Accounts with Product A only =
    CALCULATE (
        DISTINCTCOUNT ( Table1[Account] ),
        FILTER (
            ALLSELECTED ( Table1[Account] ),
            CALCULATE ( DISTINCTCOUNT ( Table1[Product] ) = 1 )
        ),
        Table1[Product] = "A"
    )