Forum Discussion

gill_thornton's avatar
3 years ago
Solved

Meassure with Filter

Hi

I work in a high school & am trying to create a measure that counts the number of students in a table with 2+ or 3+ exclusions.  I have a calendar table, which contains terms & dates.  I need to be able to add a slicer on my current visual which includes number of exclusions & number of students with exclusions.  My table is a list of student identifier, type of exlcusion (permanent or suspension) start date and end date number of days excluded.  I have tried using the following but it is just returning blanks:

No Students 2+ = CALCULATE(DISTINCTCOUNT(Exclusions[UPN]),
FILTER(
ALL(Exclusions),
Exclusions[Start date]>=MIN('Calendar'[Date])&&
Exclusions[Start date]<=MAX('Calendar'[Date])),
FILTER(ALLSELECTED(Exclusions),
CALCULATE(COUNTROWS(Exclusions))>=2))
 
Any help would be appreciated.

 

  • lbendlin's avatar
    lbendlin
    3 years ago

    You can do that in a graphical way (putting the UPN and any column count in a table or matrix)

     

    or you can have a card visual with a measure behind it

     

    Both solutions will be impacted by any date range filters you may want to apply.

     

4 Replies