Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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.
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)
))
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)
))
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
89 | |
88 | |
83 | |
64 | |
49 |
User | Count |
---|---|
125 | |
111 | |
88 | |
69 | |
66 |