Forum Discussion
Chrism123
8 years agoFrequent Visitor
Comparing Month and Year of Two dates
Hi,
I hope someone can help me with this problem.
I would like to compare Year and Month of two dates but I only know how to compare either month or year.
=CALCULATE('Measure'[Sales]+'Measure'[Backlog];
FILTER(all(date[Order Date]);
month(date[Order Date])=month([Last Batch Date])))
Thanks!
Maybe try month(date[Order Date])=month([Last Batch Date])&&year(date[Order Date])=year([Last Batch Date]) instead?
4 Replies
- jthomson
Solution Sage
You should just be able to add the same syntax you've used for the month section for the year as another argument in your calculate function