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 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 )
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 |
---|---|
96 | |
95 | |
82 | |
71 | |
64 |
User | Count |
---|---|
116 | |
106 | |
94 | |
79 | |
72 |