Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
So in 2020 I had set up a DAX measure to sum up Sales quota target that was YTD to the current month. The formula was:
So I get the following result in my 2020 file (saved in Sept 2020):
The filter on the visual is:
This is value is correct, and it working as it should with the Date.Months from Today filter of -1. I just want the max month of August, Month 8
The same formula in my current 2022 file (March 2022) I get the following result:
The filter on the visual is the same:
This result is wrong and it should be 2 if I use the same logic that I applied from my first file, since the current month is March, that would be 3, and with the Date.Months from Today = -1 it should bring me 2. Is there something that I am missing?? All my relationships from my tables are the same and date table hasnt changed. So I don't know what is going on? Does anyone know?
I also attached my date tables from 2020 and 2022 as well:
2020 Date Table:
2022 Date Table:
Solved! Go to Solution.
Hi @imadorkous ,
You could create a measure like below.
Best Regards,
Jay
Hi @imadorkous ,
You could create a measure like below.
Best Regards,
Jay
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!