Forum Discussion
Anonymous
3 years agoNot applicable
DAX to Filter by current month
Hello Data Enthusiasts, I am trying to automate a measure. Actually, it's a filter part of the measure. Currently, I am using: FILTER('Calendar','Calendar'[FinMnthYr]= "Nov-22")) to filter the ...
MHZ
2 years agoNew Member
how to add year as well e.g. From date i dont know year as there are dates in the data for multiple year, above expression will not filter correctly if there are multiple dates i.e. multiple years
katika555
Resolver I
2 years agoHi,
If you want current Year current month just add additional filter options:
Calculate (Sum('Table'[Col Electricity]),FILTER('Table',MONTH('Table'[date])=MONTH(now())&&Year('Table'[date])=Year(now())))