Forum Discussion

SPC_123's avatar
SPC_123
Frequent Visitor
6 years ago
Solved

DAX with filter question

I have a basic question.  I would like to create a measure for a filtered value of a column, providing/displaying the total number of attendees for a particular ‘interaction type’.

Table Name = Consolidated

Column Name = Interaction Type

Column Name = Total Number of Attendees

Examples of interaction types   Face to Face, Virtual

I want to create a DAX expression to display/count of Total Number of Attendees, for the Interaction Type of Virtual.

I cannot use a quick measure as I need to be able to use this elsewhere and quick measure does not allow the filtering I need.

Thank you.

  • Anonymous's avatar
    Anonymous
    6 years ago
    measure name = CALCULATE(SUM('Consolidated'[Total Number of Attendees]), FILTER('Consolidated', 'Consolidated'[Interaction Type] = "Virtual"))

    Something like the above should work.

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable
    measure name = CALCULATE(SUM('Consolidated'[Total Number of Attendees]), FILTER('Consolidated', 'Consolidated'[Interaction Type] = "Virtual"))

    Something like the above should work.

  • Measure = CALCULATE(COUNT(Consolidated[Total Number of Attendees], Consolidated[Interaction Type] = "Virtual")