- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Need help finishing my measure with a Contains section
Hi, using my table below I need a measure that gives me a count of all incident types containing "Aggression". The measure I currently have only selects the singular/exact word and gives me a count of 1 where I need a count of 4. FYI, I need those dates in the measure too.
Date | Incident_Number | Type_of_incident |
01/01/2024 | 1 | Missing Person |
01/02/2024 | 2 | Fall |
01/03/2024 | 3 | Theft |
01/04/2024 | 4 | Aggression, Threats |
01/05/2024 | 5 | Aggression, ASB |
01/06/2024 | 6 | Theft |
01/07/2024 | 7 | Aggression, ASB, Violence |
01/08/2024 | 8 | Medical Concern |
01/09/2024 | 9 | Aggression |
Thanks for your help
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

hi @RichOB ,
try like:
Aggression_24 = (
CALCULATE(
Count(Table[Incident_Number]),
CONTAINSSTRING('Table'[Type_of_Incident] ,"Aggression"),
'Tables'[Date]>=DATE(2024,1,1),
'Table'[Date]<=Date(2025,9,1)
))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

hi @RichOB ,
try like:
Aggression_24 = (
CALCULATE(
Count(Table[Incident_Number]),
CONTAINSSTRING('Table'[Type_of_Incident] ,"Aggression"),
'Tables'[Date]>=DATE(2024,1,1),
'Table'[Date]<=Date(2025,9,1)
))

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
10-09-2024 07:21 AM | |||
10-10-2024 08:59 AM | |||
10-14-2024 05:36 AM | |||
08-06-2024 06:05 AM | |||
Anonymous
| 01-05-2023 06:36 PM |
User | Count |
---|---|
107 | |
87 | |
80 | |
54 | |
46 |