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.
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!
Solved! Go to Solution.
Maybe try month(date[Order Date])=month([Last Batch Date])&&year(date[Order Date])=year([Last Batch Date]) instead?
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
Hi, I already tried this, but it I get an error because there is only a maximum of 2 arguments allowed for the FILTER-function.
Maybe try month(date[Order Date])=month([Last Batch Date])&&year(date[Order Date])=year([Last Batch Date]) instead?
Thank you! 🙂 I think that works!
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 |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
126 | |
106 | |
105 | |
86 | |
72 |