Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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]
)