Forum Discussion
nicholas_goodye
10 months agoFrequent Visitor
Ordering Detail Level Table by Total Count of Rows per Location
The data: LocationTable LocationID LocationName 001 A 002 B 003 C IncidentTable LocationID IncidentID Date 003 1 10/1/25 003 2 7/1/25 003 ...
- 10 months ago
Hello nicholas_goodye ,
I tested the function bellow and worked here;CountOfIncidents_LastMonth = VAR StartOfLastMonth = EDATE(DATE(YEAR(TODAY()), MONTH(TODAY()), 1), -1) VAR StartOfThisMonth = DATE(YEAR(TODAY()), MONTH(TODAY()), 1) RETURN CALCULATE( COUNTROWS('IncidentTable'), 'IncidentTable'[Date] >= StartOfLastMonth, 'IncidentTable'[Date] < StartOfThisMonth )
✅ If this answer solves your problem, please mark it as correct to help other community members.
v-hashadapu
Community Support
10 months agoHi nicholas_goodye , Thank you for reaching out to the Microsoft Community Forum.
We find the answer shared by Anonymous is appropriate. Can you please confirm if the solution worked for you. It will help others with similar issues find the answer easily.
Thank you Anonymous for your valuable response.