Forum Discussion

BharatM's avatar
BharatM
New Member
8 years ago
Solved

DAX - counting based on two columns

Hi,   I am fairly new to DAX. I have been struggling all day to solve a particular problem and would be grateful if someone can help guide me. I have a list of customers and data looks like this (d...
  • OwenAuger's avatar
    OwenAuger
    8 years ago

    BharatM

     

    I would suggest creating either a calculated column or measure using this code:

    Chair only =
    IF (
        CALCULATE (
            SELECTEDVALUE ( Choices[Choice] ),
            ALLEXCEPT ( Choices, Choices[Customer ID] )
        )
            = "Chair",
        1
    )

    Then apply a visual level filter (or any sort of filter in the case of a calculated column) Chair only = 1