Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I want to count month and year only (month=3 and year =2021) and status = completed
How I edit from DAX as below ?
Count of Status Date = VAR __CurrentMeasure =
CALCULATE(
COUNTA('Update'[Status Date]),
eomonth('Update'[Status Date],-1)+1 = DATE(2021, 3, 1)
)
RETURN
IF ( ISBLANK ( __CurrentMeasure ), 0, __CurrentMeasure )
Solved! Go to Solution.
Hi @Anonymous ,
According to your description, The following measure may be helpful to you:
Count of StatusDate =
CALCULATE (
COUNTROWS ( 'Update' ),
FILTER (
'Update',
YEAR ( [Status Date] ) = 2021
&& MONTH ( [Status Date] ) = 3
&& [Status] = "completed"
)
) + 0The final output is shown below:
Best Regards,
Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
According to your description, The following measure may be helpful to you:
Count of StatusDate =
CALCULATE (
COUNTROWS ( 'Update' ),
FILTER (
'Update',
YEAR ( [Status Date] ) = 2021
&& MONTH ( [Status Date] ) = 3
&& [Status] = "completed"
)
) + 0The final output is shown below:
Best Regards,
Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Try a measure like
Count of Status Date = VAR __CurrentMeasure =
CALCULATE(
COUNTA('Update'[Status Date]),filter('Update' ,
eomonth('Update'[Status Date],0) = eomonth(today(),0) && 'Update'[status] = "completed")
)
RETURN
IF ( ISBLANK ( __CurrentMeasure ), 0, __CurrentMeasure )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 73 | |
| 50 | |
| 48 | |
| 45 |