I am using this report to track new log-ins month to month, which currently is working fine, but I need to reset everything back to 0 - so that every fiscal year each log-in is considered new again.
Log In Table
ID | Name | Date |
---|---|---|
login1 | Sam | 1/12/2020 8:00:00 AM |
login2 | Sam | 1/12/2020 9:00:00 AM |
login3 | Dave | 1/12/2020 8:00:00 AM |
login4 | Dave | 1/12/2020 9:00:00 AM |
login5 | Jack | 1/12/2020 8:00:00 AM |
login6 | Sam | 1/12/2020 9:00:00 AM |
login7 | James | 2/12/2020 8:00:00 AM |
login8 | James | 2/12/2020 9:00:00 AM |
login9 | James | 2/12/2020 10:00:00 AM |
login10 | Sam | 3/12/2020 8:00:00 AM |
login11 | Sam | 3/12/2020 9:00:00 AM |
login12 | Steve | 4/12/2020 8:00:00 AM |
Using this data, filtered on February we would see Steve never signed in prior to that date, so that makes him 'new'. James is also new.
My closest attempt is the custom 'Count of New Individuals' Measure
VAR currentUsers = VALUES('Log-Ins'[Name])
VAR currentDate = MIN('Log-Ins'[Date])
VAR pastUsers = CALCULATETABLE(VALUES('Log-Ins'[Name]),
ALL('Log-Ins'[Date].[Month],'Log-Ins'[Date].[MonthNo],'Log-Ins'[Date].[Year])
, 'Log-Ins'[Date]<currentDate)
VAR newUsers = EXCEPT(currentUsers,pastUsers)
RETURN COUNTROWS(newUsers)
I tried to add in a hard-coded and replace 'currentDate' with it but that gives me ALL log ins since that date month over month which I don't want. Basically I want people that have signed in even in 2020 to be considered new again, but only for that month and not again until the next year (or whatever date I define)
VAR fiscalYear = DATE(2021,2,01)
I'm thinking I have to still use currentDate but maybe filter it based on fiscalDate? Not sure how to go about this one.