Phil Price Posted January 11, 2021 Share Posted January 11, 2021 I have a cross-table that shows the number of certain event types that occure in any given month. There is 20 years of data recorded. Event types are rows and months are columns. The agregation method is Count(). The issue is that it is aggregating across the entire 20 years of data. I can correct this by setting a filter on the data range of interest. What I would like to know is, is there a way to limit a date range using an expression. I know this is not correct. But something like: if([incidentDate]) > Year(2019,12,31) Count([incidentID) Many thanks. Link to comment Share on other sites More sharing options...
Phil Price Posted January 12, 2021 Author Share Posted January 12, 2021 Ok, I figured it out. Count(case when [incidentDate]>=Date(2020,2,1) then 1 END) as [12m Run], Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now