Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I can only assume this stopped working now that we are into a new year. It no longer calculates PREVIOUS MONTH, 2 MONTHS AGO, 3 MONTHS AGO, ...
It does calculate TOTAL COUNT THIS MONTH:
Here is what I have for PREVIOUS MONTH that no longer works:
Solved! Go to Solution.
Hi @pbeeyeqs ,
quick and dirty.
Hi @pbeeyeqs ,
another dirty hack..
Total Count Last Month =
COUNTX(
FILTER(
'_Report_All Logins',
MONTH(DATEADD([Activity_Date],1, MONTH))=MONTH(TODAY())
),
'_Report_All Logins'[dbo_USER_ACTIVITY_ID]
)
Total Count 2 Months Ago =
COUNTX(
FILTER(
'_Report_All Logins',
MONTH(DATEADD([Activity_Date],2, MONTH))= MONTH(TODAY())
),
'_Report_All Logins'[dbo_USER_ACTIVITY_ID]
)
Hi @pbeeyeqs ,
quick and dirty.
That seems to work for previous month. How would it then figure 2 months ago, 3 months ago, ...
I have below for 2 months ago, but it doesn't seem to be correct:
Hi @pbeeyeqs ,
another dirty hack..
Total Count Last Month =
COUNTX(
FILTER(
'_Report_All Logins',
MONTH(DATEADD([Activity_Date],1, MONTH))=MONTH(TODAY())
),
'_Report_All Logins'[dbo_USER_ACTIVITY_ID]
)
Total Count 2 Months Ago =
COUNTX(
FILTER(
'_Report_All Logins',
MONTH(DATEADD([Activity_Date],2, MONTH))= MONTH(TODAY())
),
'_Report_All Logins'[dbo_USER_ACTIVITY_ID]
)
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
118 | |
101 | |
71 | |
61 |