March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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"
)
) + 0
The 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"
)
) + 0
The 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 )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |