Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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]
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
117 | |
104 | |
77 | |
73 | |
50 |
User | Count |
---|---|
145 | |
109 | |
108 | |
90 | |
64 |